Merge pull request #5268 from GilesBathgate/fix-dead-code-snc-simplify

Fix structurally dead code in SNC_simplify.h
This commit is contained in:
Laurent Rineau 2021-01-22 09:35:59 +01:00
commit 09f4237245
1 changed files with 0 additions and 11 deletions

View File

@ -191,16 +191,6 @@ class SNC_simplify_base : public SNC_decorator<SNC_structure> {
return (sp1 == sp2.antipode()); return (sp1 == sp2.antipode());
} }
bool simplify_redundant_box_vertex(Vertex_handle v, bool snc_computed) {
//CGAL_warning("altered code");
return false;
if(snc_computed) return false;
if(!Infi_box::is_redundant_box_vertex(*v)) return false;
this->sncp()->delete_vertex(v);
simplified = true;
return true;
}
bool simplify_redundant_vertex_in_volume(Vertex_handle v) { bool simplify_redundant_vertex_in_volume(Vertex_handle v) {
if(is_part_of_volume(v)) { if(is_part_of_volume(v)) {
// CGAL_NEF_TRACEN("mark("<<IO->index(v)<<")="<<v->mark()<<", "<< // CGAL_NEF_TRACEN("mark("<<IO->index(v)<<")="<<v->mark()<<", "<<
@ -295,7 +285,6 @@ class SNC_simplify_base : public SNC_decorator<SNC_structure> {
while( v != (*this->sncp()).vertices_end()) { while( v != (*this->sncp()).vertices_end()) {
Vertex_iterator v_next(v); Vertex_iterator v_next(v);
++v_next; ++v_next;
if(!simplify_redundant_box_vertex(v, snc_computed))
if(!simplify_redundant_vertex_in_volume(v)) if(!simplify_redundant_vertex_in_volume(v))
if(!simplify_redundant_vertex_on_facet(v)) if(!simplify_redundant_vertex_on_facet(v))
simplify_redundant_vertex_on_edge(v, snc_computed); simplify_redundant_vertex_on_edge(v, snc_computed);