mirror of https://github.com/CGAL/cgal
Merge pull request #1898 from sloriot/PMP-fix_coref
fix make_terminal()
This commit is contained in:
commit
58ba771e5d
|
|
@ -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