this check is too hard sometimes and prevents some stls from meshing

bone.stl fails on moderate because of this
This commit is contained in:
Christopher Lackner 2019-10-08 12:41:26 +02:00
parent e784abb8f7
commit ed087848ef

View File

@ -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;
}