Mesh improvements:

+ support of Simple Model Format (smf)
+ improve reading of STL files (reduce by ~70%)
This commit is contained in:
wmayer
2018-07-26 13:19:35 +02:00
parent 98af9aabd9
commit 6cc1524a0d
9 changed files with 363 additions and 2 deletions

View File

@@ -39,6 +39,7 @@
#include "Helpers.h"
#include "Grid.h"
#include "TopoAlgorithm.h"
#include "Functional.h"
#include <Base/Matrix.h>
#include <Base/Sequencer.h>
@@ -966,7 +967,9 @@ void MeshKernel::RebuildNeighbours (unsigned long index)
}
// sort the edges
std::sort(edges.begin(), edges.end(), Edge_Less());
//std::sort(edges.begin(), edges.end(), Edge_Less());
int threads = std::max(1, QThread::idealThreadCount());
MeshCore::parallel_sort(edges.begin(), edges.end(), Edge_Less(), threads);
unsigned long p0 = ULONG_MAX, p1 = ULONG_MAX;
unsigned long f0 = ULONG_MAX, f1 = ULONG_MAX;