mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
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:
parent
e784abb8f7
commit
ed087848ef
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user