final check for badsurfacemesh

This commit is contained in:
Christopher Lackner 2019-09-27 14:45:15 +02:00
parent 9b92e754f2
commit c04da61ddc

View File

@ -438,7 +438,8 @@ int STLSurfaceMeshing (STLGeometry & geom, class Mesh & mesh, const MeshingParam
PrintMessage(5,"check overlapping"); PrintMessage(5,"check overlapping");
// mesh.FindOpenElements(); // would leed to locked points // mesh.FindOpenElements(); // would leed to locked points
if(mesh.CheckOverlappingBoundary()) ; mesh.CheckOverlappingBoundary();
// if(mesh.CheckOverlappingBoundary()) ;
// return MESHING3_BADSURFACEMESH; // return MESHING3_BADSURFACEMESH;
geom.InitMarkedTrigs(); geom.InitMarkedTrigs();
@ -587,6 +588,9 @@ int STLSurfaceMeshing (STLGeometry & geom, class Mesh & mesh, const MeshingParam
} }
while (nopen); while (nopen);
if(mesh.CheckOverlappingBoundary())
return MESHING3_BADSURFACEMESH;
mesh.Compress(); mesh.Compress();
mesh.CalcSurfacesOfNode(); mesh.CalcSurfacesOfNode();