Merge pull request #7385 from sloriot/PMP-tr_fix_deg_tri

handle degenerate triangles (usually created with the reprojection)
This commit is contained in:
Laurent Rineau 2023-04-17 10:12:43 +02:00
commit 2262bc9909
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,10 @@ void tangential_relaxation(const VertexRange& vertices,
}
prev = n;
}
if (first_run)
return true; //vertex incident only to degenerate faces
if (!get(ecm, edge(first_h, tm)))
if (to_double(first * prev) <= 0)
return false;