diff --git a/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/poisson_reconstruction.cpp b/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/poisson_reconstruction.cpp index 7d0922d1a4c6..72942c49c9f9 100644 --- a/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/poisson_reconstruction.cpp +++ b/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/poisson_reconstruction.cpp @@ -1,4 +1,3 @@ -#include // poisson_reconstruction.cpp //---------------------------------------------------------- @@ -23,7 +22,6 @@ #include #include -#include #include #include #include @@ -312,8 +310,6 @@ int main(int argc, char * argv[]) Sphere bsphere = function.bounding_sphere(); FT radius = std::sqrt(bsphere.squared_radius()); - // Defines the implicit surface: requires defining a - // conservative bounding sphere centered at inner point. FT sm_sphere_radius = 5.0 * radius; FT sm_dichotomy_error = sm_distance*average_spacing/1000.0; // Dichotomy error must be << sm_distance diff --git a/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/poisson_reconstruction_example.cpp b/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/poisson_reconstruction_example.cpp index b726fb7db60d..d44d13be0845 100644 --- a/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/poisson_reconstruction_example.cpp +++ b/Poisson_surface_reconstruction_3/examples/Poisson_surface_reconstruction_3/poisson_reconstruction_example.cpp @@ -1,6 +1,3 @@ -/// @TODO: change the usage from Surface_mesher to Mesh_3 -#include - #include #include #include @@ -75,14 +72,10 @@ int main(void) (points, 6 /* knn = 1 ring */, CGAL::parameters::point_map (Point_map())); - // Gets one point inside the implicit surface - // and computes implicit function bounding sphere radius. - Point inner_point = function.get_inner_point(); + //Computes implicit function bounding sphere radius. Sphere bsphere = function.bounding_sphere(); FT radius = std::sqrt(bsphere.squared_radius()); - // Defines the implicit surface: requires defining a - // conservative bounding sphere centered at inner point. FT sm_sphere_radius = 5.0 * radius; FT sm_dichotomy_error = sm_distance*average_spacing/1000.0; // Dichotomy error must be << sm_distance