fix the value used creating the infimax box used for pairing halfedges

without the abs the intersection line of x=-1 and z=-1 would be on the box
leading to invalid behavior (and degenerate halfedges)
This commit is contained in:
Sébastien Loriot 2025-01-30 18:17:12 +01:00
parent f7a57a6c41
commit f20af1a946
1 changed files with 3 additions and 3 deletions

View File

@ -402,9 +402,9 @@ class Infimaximal_box<Tag_true, Kernel> {
typename SNC_structure::Vertex_const_iterator v;
CGAL_forall_vertices(v, snc) {
Point_3 p(v->point());
if(p.hx()[0] > eval) eval = p.hx()[0];
if(p.hy()[0] > eval) eval = p.hy()[0];
if(p.hz()[0] > eval) eval = p.hz()[0];
if(abs(p.hx()[0]) > eval) eval = abs(p.hx()[0]);
if(abs(p.hy()[0]) > eval) eval = abs(p.hy()[0]);
if(abs(p.hz()[0]) > eval) eval = abs(p.hz()[0]);
}
eval *= 4;
if(eval == 0) return 1;