Skip to content
Snippets Groups Projects
Commit 18bc7c54 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

a bit of voodoo for spheres :-)

parent 087bed02
No related branches found
No related tags found
No related merge requests found
......@@ -1261,7 +1261,8 @@ bool BDS_Mesh::smooth_point_centroid(BDS_Point *p, GFace *gf, bool test_quality)
oldWorst = std::min(oldWorst, qmTriangle(*it, QMTRI_RHO));
double ps;
prosca(norm1, norm2, &ps);
if(ps < .5) return false;
double threshold = (isSphere ? 0.9 : 0.5);
if(ps < threshold) return false;
}
++it;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment