Skip to content

Commit

Permalink
cleanups of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lrineau committed Jun 7, 2024
1 parent 50d7aba commit a1c5e49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <CGAL/Installation/internal/disable_deprecation_warnings_and_errors.h>
// poisson_reconstruction.cpp

//----------------------------------------------------------
Expand All @@ -23,7 +22,6 @@
#include <CGAL/make_mesh_3.h>
#include <CGAL/facets_in_complex_3_to_triangle_mesh.h>

#include <CGAL/Poisson_implicit_surface_3.h>
#include <CGAL/Poisson_reconstruction_function.h>
#include <CGAL/IO/read_points.h>
#include <CGAL/compute_average_spacing.h>
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/// @TODO: change the usage from Surface_mesher to Mesh_3
#include <CGAL/Installation/internal/disable_deprecation_warnings_and_errors.h>

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/Poisson_reconstruction_function.h>
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a1c5e49

Please sign in to comment.