mirror of https://github.com/CGAL/cgal
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:
parent
f7a57a6c41
commit
f20af1a946
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue