From dc31a8ce3a1e988369659a027bbe107c088d7835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 23 Jun 2025 11:36:13 +0200 Subject: [PATCH] add precondition about single CC mesh --- .../approximated_centroidal_Voronoi_diagram_remeshing.h | 3 +++ .../include/CGAL/extract_mean_curvature_flow_skeleton.h | 1 + 2 files changed, 4 insertions(+) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/approximated_centroidal_Voronoi_diagram_remeshing.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/approximated_centroidal_Voronoi_diagram_remeshing.h index 3ada7adc68f..51d50d1da26 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/approximated_centroidal_Voronoi_diagram_remeshing.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/approximated_centroidal_Voronoi_diagram_remeshing.h @@ -1390,6 +1390,9 @@ acvd_impl(TriangleMesh& tmesh, * * \cgalNamedParamsEnd * +* +* @pre tmesh is a triangulated surface mesh and has exactly one connected component. +* * @return `true` if `nb_vertices` was sufficiently large for remeshing the input, and `false` if more points were used * */ diff --git a/Surface_mesh_skeletonization/include/CGAL/extract_mean_curvature_flow_skeleton.h b/Surface_mesh_skeletonization/include/CGAL/extract_mean_curvature_flow_skeleton.h index 85c861e565c..4ca8182724f 100644 --- a/Surface_mesh_skeletonization/include/CGAL/extract_mean_curvature_flow_skeleton.h +++ b/Surface_mesh_skeletonization/include/CGAL/extract_mean_curvature_flow_skeleton.h @@ -43,6 +43,7 @@ namespace CGAL{ /// and the set of input vertices that contracted to `vd` can be retrieved /// using `skeleton[vd].point` and `skeleton[vd].vertices` respectively. /// +/// @pre `tmesh` is a triangulated surface mesh without borders and has exactly one connected component. template void extract_mean_curvature_flow_skeleton(const TriangleMesh& tmesh, typename Mean_curvature_flow_skeletonization::Skeleton& skeleton)