From b2e81005459f0434bd627d9ac54f3eeb5b6149d3 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 13 Nov 2022 19:09:13 +0100 Subject: [PATCH] order elements such that first vertex is lowest index (reduce equivalence classes) --- libsrc/meshing/basegeom.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/meshing/basegeom.cpp b/libsrc/meshing/basegeom.cpp index 6a9a8721..367d4ec8 100644 --- a/libsrc/meshing/basegeom.cpp +++ b/libsrc/meshing/basegeom.cpp @@ -1153,6 +1153,8 @@ namespace netgen for (int i = 0; i < mesh.GetNDomains(); i++) if (auto name = solids[i]->properties.name) mesh.SetMaterial (i+1, *name); + + mesh.OrderElements(); } shared_ptr GeometryRegisterArray :: LoadFromMeshFile (istream & ist) const