Skip to content

Commit

Permalink
fix alias and missing plugin (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy authored Sep 24, 2024
1 parent 0925687 commit fe2d9d2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<Node name="cavity">
<MeshOBJLoader name="loader" filename='mesh/Hollow_Bunny_Body_Cavity.obj'/>
<Mesh name="topo" src='@loader'/>
<MeshTopology name="topo" src='@loader'/>
<MechanicalObject name="cavity" />

<SurfacePressureConstraint name="SurfacePressureConstraint" value='40' valueType="1"/>
Expand Down
3 changes: 3 additions & 0 deletions tests/component/controller/AnimationEditorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ using softrobots::controller::AnimationEditor ;
#include <sofa/core/behavior/MechanicalState.h>
using sofa::core::behavior::MechanicalState;

#include <sofa/simpleapi/SimpleApi.h>

namespace softrobots
{
Expand Down Expand Up @@ -122,6 +123,8 @@ struct AnimationEditorTest : public sofa::testing::BaseTest, controller::Animati

void simpleSceneTest()
{
sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");

string scene =
"<?xml version='1.0'?>"
"<Node name='Root' gravity='0 0 0' time='0' animate='0' > "
Expand Down
7 changes: 6 additions & 1 deletion tests/component/engine/VolumeFromTetrahedronsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ using softrobots::engine::VolumeFromTetrahedrons ;
#include <sofa/helper/system/FileRepository.h>
using sofa::helper::system::DataRepository;

#include <sofa/simpleapi/SimpleApi.h>

namespace softrobots
{
Expand Down Expand Up @@ -110,7 +111,11 @@ struct VolumeFromTetrahedronsTest : public sofa::testing::BaseTest, VolumeFromTe
return ;
}

void simpleSceneTest(){
void simpleSceneTest()
{

sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");

string scene =
"<?xml version='1.0'?>"
"<Node name='Root' gravity='0 0 0' time='0' animate='0'> "
Expand Down
3 changes: 3 additions & 0 deletions tests/component/engine/VolumeFromTrianglesTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ using softrobots::engine::VolumeFromTriangles ;
#include <sofa/helper/system/FileRepository.h>
using sofa::helper::system::DataRepository;

#include <sofa/simpleapi/SimpleApi.h>

namespace softrobots
{
Expand Down Expand Up @@ -113,6 +114,8 @@ struct VolumeFromTrianglesTest : public sofa::testing::BaseTest, VolumeFromTrian

void simpleSceneTest()
{
sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");

string scene =
"<?xml version='1.0'?>"
"<Node name='Root' gravity='0 0 0' time='0' animate='0'>"
Expand Down

0 comments on commit fe2d9d2

Please sign in to comment.