From c2873d8d37f5cca4ec65b9c899da69d3bc56591f Mon Sep 17 00:00:00 2001 From: Thijs van Lankveld Date: Tue, 23 Dec 2014 17:36:41 +0100 Subject: [PATCH] Fix for the bugfix for clearing the surface. --- .../include/CGAL/Scale_space_surface_reconstruction_3.h | 2 +- .../include/CGAL/Scale_space_surface_reconstruction_3_impl.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Scale_space_reconstruction_3/include/CGAL/Scale_space_surface_reconstruction_3.h b/Scale_space_reconstruction_3/include/CGAL/Scale_space_surface_reconstruction_3.h index 00d7042eea4..f4e4ee05fc3 100644 --- a/Scale_space_reconstruction_3/include/CGAL/Scale_space_surface_reconstruction_3.h +++ b/Scale_space_reconstruction_3/include/CGAL/Scale_space_surface_reconstruction_3.h @@ -228,7 +228,7 @@ private: void deinit_shape() { if( _shape != 0 ) { delete _shape; _shape = 0; } } void clear_tree() { _tree.clear(); } - void clear_surface() { _surface.clear(); deinit_shape(); } + void clear_surface() { _shells.clear(); _surface.clear(); deinit_shape(); } // SURFACE COLLECTION // Once a facet is added to the surface, it is marked as handled. diff --git a/Scale_space_reconstruction_3/include/CGAL/Scale_space_surface_reconstruction_3_impl.h b/Scale_space_reconstruction_3/include/CGAL/Scale_space_surface_reconstruction_3_impl.h index b99abc37b85..069073134ec 100644 --- a/Scale_space_reconstruction_3/include/CGAL/Scale_space_surface_reconstruction_3_impl.h +++ b/Scale_space_reconstruction_3/include/CGAL/Scale_space_surface_reconstruction_3_impl.h @@ -470,8 +470,7 @@ template < class Gt, class FS, class Sh, class wA, class Ct > void Scale_space_surface_reconstruction_3:: collect_surface() { - _surface.clear(); - _shells.clear(); + clear_surface(); if( !has_shape() ) construct_shape(); collect_facets();