mirror of https://github.com/CGAL/cgal
* Fixed old bug of the "cones" created by APSS:
- added new function get_polyhedron_connected_components() that computes the connected components of a polyhedron. - added new function erase_small_polyhedron_connected_components() that removes the *small* connected components of a polyhedron (leaves only the largest). - call erase_small_polyhedron_connected_components() after APSS reconstruction
This commit is contained in:
parent
ba1d0b27c0
commit
a2efc1b786
|
|
@ -117,7 +117,7 @@ Polyhedron* APSS_reconstruct(const Point_set& points,
|
|||
|
||||
// Convert to polyhedron
|
||||
Polyhedron* output_mesh = new Polyhedron;
|
||||
surface_reconstruction_output_surface_facets(surface_mesher_c2t3, *output_mesh);
|
||||
CGAL::surface_reconstruction_output_surface_facets(surface_mesher_c2t3, *output_mesh);
|
||||
|
||||
//***************************************
|
||||
// Erase small connected components
|
||||
|
|
@ -126,7 +126,7 @@ Polyhedron* APSS_reconstruct(const Point_set& points,
|
|||
std::cerr << "Erase small connected components...\n";
|
||||
|
||||
unsigned int nb_erased_components =
|
||||
erase_small_polyhedron_connected_components(*output_mesh);
|
||||
CGAL::erase_small_polyhedron_connected_components(*output_mesh);
|
||||
|
||||
// Print status
|
||||
std::cerr << "Erase small connected components: " << task_timer.time() << " seconds, "
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ int main(int argc, char * argv[])
|
|||
|
||||
// Convert to polyhedron
|
||||
Polyhedron output_mesh;
|
||||
surface_reconstruction_output_surface_facets(surface_mesher_c2t3, output_mesh);
|
||||
CGAL::surface_reconstruction_output_surface_facets(surface_mesher_c2t3, output_mesh);
|
||||
|
||||
//***************************************
|
||||
// Erase small connected components
|
||||
|
|
@ -259,7 +259,7 @@ int main(int argc, char * argv[])
|
|||
std::cerr << "Erase small connected components...\n";
|
||||
|
||||
unsigned int nb_erased_components =
|
||||
erase_small_polyhedron_connected_components(output_mesh);
|
||||
CGAL::erase_small_polyhedron_connected_components(output_mesh);
|
||||
|
||||
// Print status
|
||||
std::cerr << "Erase small connected components: " << task_timer.time() << " seconds, "
|
||||
|
|
|
|||
Loading…
Reference in New Issue