From c04da61ddc3114410dc78a2b1b13658039e92fdb Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 27 Sep 2019 14:45:15 +0200 Subject: [PATCH] final check for badsurfacemesh --- libsrc/stlgeom/meshstlsurface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsrc/stlgeom/meshstlsurface.cpp b/libsrc/stlgeom/meshstlsurface.cpp index 3937980c..4eadc1e0 100644 --- a/libsrc/stlgeom/meshstlsurface.cpp +++ b/libsrc/stlgeom/meshstlsurface.cpp @@ -438,7 +438,8 @@ int STLSurfaceMeshing (STLGeometry & geom, class Mesh & mesh, const MeshingParam PrintMessage(5,"check overlapping"); // mesh.FindOpenElements(); // would leed to locked points - if(mesh.CheckOverlappingBoundary()) ; + mesh.CheckOverlappingBoundary(); + // if(mesh.CheckOverlappingBoundary()) ; // return MESHING3_BADSURFACEMESH; geom.InitMarkedTrigs(); @@ -587,6 +588,9 @@ int STLSurfaceMeshing (STLGeometry & geom, class Mesh & mesh, const MeshingParam } while (nopen); + if(mesh.CheckOverlappingBoundary()) + return MESHING3_BADSURFACEMESH; + mesh.Compress(); mesh.CalcSurfacesOfNode();