diff --git a/CGALPlugin_test/CMakeLists.txt b/CGALPlugin_test/CMakeLists.txt index fd4e9eb..01d34f5 100644 --- a/CGALPlugin_test/CMakeLists.txt +++ b/CGALPlugin_test/CMakeLists.txt @@ -11,6 +11,7 @@ set(SOURCE_FILES find_package(Sofa.Testing REQUIRED) find_package(image QUIET) + if(image_FOUND) find_package(Sofa.Component.StateContainer REQUIRED) find_package(SceneCreator REQUIRED) diff --git a/src/CGALPlugin/CylinderMesh.h b/src/CGALPlugin/CylinderMesh.h index 2f3162d..0b86d90 100644 --- a/src/CGALPlugin/CylinderMesh.h +++ b/src/CGALPlugin/CylinderMesh.h @@ -68,16 +68,6 @@ class CylinderMesh : public sofa::core::DataEngine void orientate(); void draw(const sofa::core::visual::VisualParams*) override; - virtual std::string getTemplateName() const override - { - return templateName(this); - } - - static std::string templateName(const CylinderMesh* = NULL) - { - return DataTypes::Name(); - } - //Inputs sofa::core::objectmodel::Data m_diameter; ///< Diameter sofa::core::objectmodel::Data m_length; ///< Length diff --git a/src/CGALPlugin/DecimateMesh.h b/src/CGALPlugin/DecimateMesh.h index d445454..0a81f87 100644 --- a/src/CGALPlugin/DecimateMesh.h +++ b/src/CGALPlugin/DecimateMesh.h @@ -81,16 +81,6 @@ class DecimateMesh : public sofa::core::DataEngine void writeObj(); void computeNormals(); - virtual std::string getTemplateName() const override - { - return templateName(this); - } - - static std::string templateName(const DecimateMesh* = NULL) - { - return DataTypes::Name(); - } - virtual void handleEvent(sofa::core::objectmodel::Event *event) override; diff --git a/src/CGALPlugin/MeshGenerationFromPolyhedron.h b/src/CGALPlugin/MeshGenerationFromPolyhedron.h index 05c33f8..dde9836 100644 --- a/src/CGALPlugin/MeshGenerationFromPolyhedron.h +++ b/src/CGALPlugin/MeshGenerationFromPolyhedron.h @@ -68,17 +68,7 @@ class MeshGenerationFromPolyhedron : public sofa::core::DataEngine void doUpdate() override; void draw(const sofa::core::visual::VisualParams* vparams) override; - - virtual std::string getTemplateName() const override - { - return templateName(this); - } - - static std::string templateName(const MeshGenerationFromPolyhedron* = NULL) - { - return DataTypes::Name(); - } - + //Inputs sofa::core::objectmodel::Data f_X0; ///< Rest position coordinates of the degrees of freedom sofa::core::objectmodel::Data f_triangles; ///< List of triangles diff --git a/src/CGALPlugin/TriangularConvexHull3D.h b/src/CGALPlugin/TriangularConvexHull3D.h index f99d6db..c893e57 100644 --- a/src/CGALPlugin/TriangularConvexHull3D.h +++ b/src/CGALPlugin/TriangularConvexHull3D.h @@ -59,16 +59,6 @@ class TriangularConvexHull3D : public sofa::core::DataEngine void doUpdate() override; - virtual std::string getTemplateName() const override - { - return templateName(this); - } - - static std::string templateName(const TriangularConvexHull3D* = NULL) - { - return DataTypes::Name(); - } - //Inputs sofa::core::objectmodel::Data f_X0; ///< Rest position coordinates of the degrees of freedom