changed return type of 'remove()' to 'bool' to indicate if the vertex has been removed or not

This commit is contained in:
Iordan Iordanov 2018-06-04 10:44:14 +02:00
parent 47e6699ce4
commit 636dbb3abf
1 changed files with 7 additions and 3 deletions

View File

@ -289,7 +289,7 @@ namespace CGAL {
return dummy_points[i]();
}
void remove(Vertex_handle v);
bool remove(Vertex_handle v);
bool is_dummy_vertex(Vertex_handle vh) const {
for (int i = 0; i < dummy_points.size(); i++) {
@ -517,7 +517,7 @@ insert(const Point &p, Face_handle hint, bool batch_insertion) {
//------------------------------------------------------
template < class Gt, class Tds >
void
bool
Periodic_4_hyperbolic_Delaunay_triangulation_2<Gt, Tds>::
remove(Vertex_handle v) {
@ -649,8 +649,12 @@ remove(Vertex_handle v) {
CGAL_triangulation_assertion(this->is_valid(true));
return true;
} else { // is not removable
std::cout << " -> vertex cannot be removed!" << std::endl;
return false;
}
}