From 9c2224620ddf9b619b78f7b164c5ca0c8788db0e Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 22 May 2024 14:27:43 +0100 Subject: [PATCH] Surface_mesh: Add exact_num_faces(const SM&) --- Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index 47232cbabd5..3107bb49bbe 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -2802,6 +2803,16 @@ namespace internal{ } } +namespace internal { + +template +std::size_t +exact_num_faces(const CGAL::Surface_mesh

& sm) +{ + return sm.number_of_faces(); +} + +} // namespace internal } // namespace CGAL #ifndef DOXYGEN_RUNNING