Fix for the bugfix for clearing the surface.

This commit is contained in:
Thijs van Lankveld 2014-12-23 17:36:41 +01:00
parent 5cebd6e1de
commit c2873d8d37
2 changed files with 2 additions and 3 deletions

View File

@ -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.

View File

@ -470,8 +470,7 @@ template < class Gt, class FS, class Sh, class wA, class Ct >
void
Scale_space_surface_reconstruction_3<Gt,FS,Sh,wA,Ct>::
collect_surface() {
_surface.clear();
_shells.clear();
clear_surface();
if( !has_shape() )
construct_shape();
collect_facets();