Commit 206bd898 by Christophe Geuzaine

use connectTets_vector2 only when there are no embedded faces for now

parent 72eaee27
Pipeline #197 passed with stage
in 9 minutes 40 seconds
......@@ -818,12 +818,16 @@ void optimizeMesh(GRegion *gr, const qmTetrahedron::Measures &qm)
std::set<MEdge, Less_Edge> allEmbeddedEdges;
createAllEmbeddedEdges (gr, allEmbeddedEdges);
// daaaaaaamn slow !!!
// connectTets(allTets.begin(),allTets.end(),allEmbeddedFaces.empty() ? NULL : &allEmbeddedFaces);
if (allEmbeddedFaces.empty())
{
std::vector<faceXtet> conn;
connectTets_vector2(allTets, conn);
}
else
{
// daaaaaaamn slow !!!
connectTets(allTets.begin(),allTets.end(),&allEmbeddedFaces);
}
double t1 = Cpu();
std::vector<MTet4*> illegals;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment