Commit 7cfaaa3e by Wendy Merks-Swolfs

Use same tolerance in "Tet* walk (Tet *t, Vert *v, int maxx, double &totSearch,…

Use same tolerance in "Tet* walk (Tet *t, Vert *v, int maxx, double &totSearch, int thread)" as in "static Tet* tetContainsV (Vert *v, cavityContainer &cavity)" as now the initial tet from the walk function may be some flat tets away. When building up the cavity, flat tets between the initial tet and the tet containing the vertex may not include the vertex in their sphere, resulting in that they won't end up in the cavity and so the function "tetContainsV" will not find any tet. What will result in invalid cavities, unable to recover the boundary and finally, no mesh.
parent 0ce61dd3
Pipeline #923 passed with stage
in 16 minutes 33 seconds
......@@ -980,7 +980,7 @@ Tet* walk (Tet *t, Vert *v, int maxx, double &totSearch, int thread)
(double*)f.V[1],
(double*)f.V[2],
(double*)v);
if (val >=-1.e-09) count++;
if (val >=0.0) count++;
if (val < _min){
NEIGH = iNeigh;
_min = val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment