mirror of https://github.com/CGAL/cgal
Merge pull request #7385 from sloriot/PMP-tr_fix_deg_tri
handle degenerate triangles (usually created with the reprojection)
This commit is contained in:
commit
2262bc9909
|
|
@ -188,6 +188,10 @@ void tangential_relaxation(const VertexRange& vertices,
|
||||||
}
|
}
|
||||||
prev = n;
|
prev = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (first_run)
|
||||||
|
return true; //vertex incident only to degenerate faces
|
||||||
|
|
||||||
if (!get(ecm, edge(first_h, tm)))
|
if (!get(ecm, edge(first_h, tm)))
|
||||||
if (to_double(first * prev) <= 0)
|
if (to_double(first * prev) <= 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue