From 12763e766750cd940c10a8c21b822f24e43976f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Fri, 1 Dec 2023 10:12:22 +0100 Subject: [PATCH] Avoid undefined call to pure virtual function --- src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh b/src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh index cbf6420f..20889a08 100644 --- a/src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh +++ b/src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh @@ -166,8 +166,12 @@ protected: /// \name Overload theses methods //@{ - /// Prepare mesh, e.g. add properties - virtual bool prepare( MeshType& _m ) = 0; + /** \brief Prepare mesh, e.g. add properties + * + * You have to reimplement this function to setup your mesh. The default implementation + * will always return false and therefore block your algorithm. + */ + virtual bool prepare( MeshType& /*_m*/ ) { return false; }; /// Subdivide mesh \c _m \c _n times virtual bool subdivide( MeshType& _m, size_t _n, const bool _update_points = true) = 0;