mirror of https://github.com/CGAL/cgal
previous change must also be applied in function simplify()
This commit is contained in:
parent
be8a4eb8a8
commit
e1c0a3b244
|
|
@ -553,7 +553,13 @@ avoid the simplification for edge pairs referenced by |e|.}*/
|
||||||
Face_handle f = *(unify_faces.find(Pitem[face(e)]));
|
Face_handle f = *(unify_faces.find(Pitem[face(e)]));
|
||||||
CGAL_For_all(hfc,hend) {
|
CGAL_For_all(hfc,hend) {
|
||||||
set_face(hfc,f);
|
set_face(hfc,f);
|
||||||
if ( K.compare_xy(point(target(hfc)), point(target(e_min))) < 0 )
|
if(target(hfc) == target(e_min)) {
|
||||||
|
Point p1 = point(source(hfc)),
|
||||||
|
p2 = point(target(hfc)),
|
||||||
|
p3 = point(target(next(hfc)));
|
||||||
|
if (!K.left_turn(p1,p2,p3) )
|
||||||
|
e_min = hfc;
|
||||||
|
} else if ( K.compare_xy(point(target(hfc)), point(target(e_min))) < 0 )
|
||||||
e_min = hfc;
|
e_min = hfc;
|
||||||
linked[hfc]=true;
|
linked[hfc]=true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue