From 3e018b4d1afa6d12c9e8c1592d63d5bc2ab8f6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 27 Dec 2016 11:51:58 +0100 Subject: [PATCH] use snippet to avoid inlining a whole example while we care only of a tiny part --- .../poisson_reconstruction_example.cpp | 2 ++ .../Polygon_mesh_processing.txt | 16 +++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) 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 a296f9f2a81..664f4de91c8 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 @@ -107,12 +107,14 @@ int main(void) out << output_mesh; + /// [PMP_distance_snippet] // computes the approximation error of the reconstruction double max_dist = CGAL::Polygon_mesh_processing::approximate_max_distance_to_point_set(output_mesh, points, 4000); std::cout << "Max distance to point_set: " << max_dist << std::endl; + /// [PMP_distance_snippet] return EXIT_SUCCESS; } diff --git a/Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt b/Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt index 15271fbd503..974d34d9073 100644 --- a/Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt +++ b/Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt @@ -481,9 +481,9 @@ the propagation of a connected component index to cross it. \cgalExample{Polygon_mesh_processing/connected_components_example.cpp} -\section PMPDistance Approximated Hausdorff Distance +\section PMPDistance Approximate Hausdorff Distance -This package provides methods to compute approximated Hausdorff distances. +This package provides methods to compute approximate Hausdorff distances. These distances can be computed between two meshes, a mesh and a point set, or a point set and a mesh. These computations are performed with : - `CGAL::Polygon_mesh_processing::approximate_Hausdorff_distance()` @@ -494,16 +494,18 @@ These computations are performed with : - `CGAL::Polygon_mesh_processing::sample_face()` \subsection AHDExample Approximate Hausdorff Distance Example -In the following example, a mesh is isotropically remeshed and the approximated distance between the input and the output is computed. +In the following example, a mesh is isotropically remeshed and the approximate distance between the input and the output is computed. \cgalExample{Polygon_mesh_processing/hausdorff_distance_remeshing_example.cpp} \subsection PoissonDistanceExample Max Distance Between Point Set and Surface Example -In the following example, a triangulated surface mesh is constructed from a point set using the -\link PkgPoissonSurfaceReconstructionSummary Poisson reconstruction algorithm \endlink, and the distance between the point set and the reconstructed surface is computed. - -\cgalExample{Poisson_surface_reconstruction_3/poisson_reconstruction_example.cpp} +In \ref Poisson_surface_reconstruction_3/poisson_reconstruction_example.cpp, +a triangulated surface mesh is constructed from a point set using the +\link PkgPoissonSurfaceReconstructionSummary Poisson reconstruction algorithm \endlink, +and the distance between the point set and the reconstructed surface is computed +with the following code: +\snippet Poisson_surface_reconstruction_3/poisson_reconstruction_example.cpp PMP_distance_snippet \section PMPHistory Implementation History