Skip to content

Commit

Permalink
Fix plugin compilation due to change in SOFA main.
Browse files Browse the repository at this point in the history
  • Loading branch information
epernod committed May 25, 2023
1 parent 129422f commit 30efadc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CGALPlugin_test/MeshGenerationFromImage_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct MeshGenerationFromImage_test : public BaseTest
std::string scene = scene1+imageContainerLine+scene2;

m_root = sofa::simulation::SceneLoaderXML::loadFromMemory(
"scene", scene.c_str(), scene.size());
"scene", scene.c_str());

m_root->getContext()->get(m_meshGenerator);

Expand Down Expand Up @@ -117,7 +117,7 @@ struct MeshGenerationFromImage_test : public BaseTest
std::string scene = scene1+vtkLoaderLine+imageContainerLine+scene2;

m_root = sofa::simulation::SceneLoaderXML::loadFromMemory(
"scene", scene.c_str(), scene.size());
"scene", scene.c_str());

m_root->getContext()->get(m_meshGenerator);

Expand Down
10 changes: 0 additions & 10 deletions src/CGALPlugin/MeshGenerationFromImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,6 @@ class MeshGenerationFromImage : public sofa::core::DataEngine

void draw(const sofa::core::visual::VisualParams* vparams) override;

virtual std::string getTemplateName() const override
{
return templateName(this);
}

static std::string templateName(const MeshGenerationFromImage<DataTypes, _ImageTypes>* = NULL)
{
return DataTypes::Name();
}

//Inputs
sofa::core::objectmodel::DataFileName d_filename; ///< Image file
sofa::core::objectmodel::Data< ImageTypes > d_image; ///< image input
Expand Down

0 comments on commit 30efadc

Please sign in to comment.