Merge pull request #1898 from sloriot/PMP-fix_coref

fix make_terminal()
This commit is contained in:
Laurent Rineau 2017-02-10 19:03:42 +01:00
commit 58ba771e5d
2 changed files with 2 additions and 2 deletions

View File

@ -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();}

View File

@ -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();}