mirror of https://github.com/CGAL/cgal
fix make_terminal()
if the node is already terminal, no need to break its degree This was an issue if the degree is actually 0
This commit is contained in:
parent
760076510c
commit
69fbe19f06
|
|
@ -1718,7 +1718,7 @@ class Intersection_of_Polyhedra_3{
|
|||
CGAL_assertion(neighbors.find(i)!=neighbors.end());
|
||||
neighbors.erase(i);
|
||||
}
|
||||
void make_terminal() {degree=45;}
|
||||
void make_terminal() {if (degree==2) degree=45;}
|
||||
bool is_terminal()const {return degree!=2;}
|
||||
bool empty() const {return neighbors.empty();}
|
||||
int top() const {return *neighbors.begin();}
|
||||
|
|
|
|||
|
|
@ -727,7 +727,7 @@ class Intersection_of_triangle_meshes
|
|||
CGAL_assertion(neighbors.count(i)!= 0);
|
||||
neighbors.erase(i);
|
||||
}
|
||||
void make_terminal() {degree=45;}
|
||||
void make_terminal() {if (degree==2) degree=45;}
|
||||
bool is_terminal()const {return degree!=2;}
|
||||
bool empty() const {return neighbors.empty();}
|
||||
Node_id top() const {return *neighbors.begin();}
|
||||
|
|
|
|||
Loading…
Reference in New Issue