From ed087848efe35ff635b8dee13d83a1a7f8632a59 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 8 Oct 2019 12:41:26 +0200 Subject: [PATCH] this check is too hard sometimes and prevents some stls from meshing bone.stl fails on moderate because of this --- libsrc/stlgeom/meshstlsurface.cpp | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/libsrc/stlgeom/meshstlsurface.cpp b/libsrc/stlgeom/meshstlsurface.cpp index b02d4098..8a1830e5 100644 --- a/libsrc/stlgeom/meshstlsurface.cpp +++ b/libsrc/stlgeom/meshstlsurface.cpp @@ -867,22 +867,22 @@ void STLSurfaceOptimization (STLGeometry & geom, break; } } - while(mesh.CheckOverlappingBoundary()) - { - for(const auto & el : mesh.SurfaceElements()) - { - if(el.BadElement()) - { - cout << "Restrict localh at el nr " << el << endl; - for(const auto& p : el.PNums()) - { - const auto& pnt = mesh[p]; - mesh.RestrictLocalH(pnt, 0.5*mesh.GetH(pnt)); - } - } - } - optmesh.SplitImprove(); - } + // while(mesh.CheckOverlappingBoundary()) + // { + // for(const auto & el : mesh.SurfaceElements()) + // { + // if(el.BadElement()) + // { + // cout << "Restrict localh at el nr " << el << endl; + // for(const auto& p : el.PNums()) + // { + // const auto& pnt = mesh[p]; + // mesh.RestrictLocalH(pnt, 0.5*mesh.GetH(pnt)); + // } + // } + // } + // optmesh.SplitImprove(); + // } //(*testout) << "optimize, after, step = " << meshparam.optimize2d[j-1] << mesh.Point (3679) << endl; }