Skip to content

Commit

Permalink
remove alias of MeshOBJLoader (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy authored Sep 6, 2024
1 parent 689f4ed commit 43e9eb7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def createScene(rootNode):

# bunny/cavity
cavity = bunny.addChild('cavity')
cavity.addObject('MeshObjLoader', name='loader', filename=path + 'Hollow_Bunny_Body_Cavity.obj')
cavity.addObject('MeshOBJLoader', name='loader', filename=path + 'Hollow_Bunny_Body_Cavity.obj')
cavity.addObject('MeshTopology', src='@loader', name='topo')
cavity.addObject('MechanicalObject', name='cavity')
cavity.addObject('SurfacePressureConstraint', name='surfaceConstraint', triangles='@topo.triangles', value=0,
Expand Down
2 changes: 1 addition & 1 deletion python3/softrobots/inverse/actuators/pneumatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def PneumaticCavity(surfaceMeshFileName=None,
if surfaceMeshFileName.endswith(".stl"):
pneumatic.addObject('MeshSTLLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
elif surfaceMeshFileName.endswith(".obj"):
pneumatic.addObject('MeshObjLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
pneumatic.addObject('MeshOBJLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
else :
Sofa.msg_error("Your surfaceMeshFileName extension is not the right one, you have to give a surfacic mesh with .stl or .obj extension")
return None
Expand Down
2 changes: 1 addition & 1 deletion python3/softrobots/inverse/effectors/volumeEffector.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def VolumeEffector(surfaceMeshFileName=None,
if surfaceMeshFileName.endswith(".stl"):
veffector.addObject('MeshSTLLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
elif surfaceMeshFileName.endswith(".obj"):
veffector.addObject('MeshObjLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
veffector.addObject('MeshOBJLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
else :
Sofa.msg_error("Your surfaceMeshFileName extension is not the right one, you have to give a surfacic mesh with .stl or .obj extension")
return None
Expand Down
2 changes: 1 addition & 1 deletion python3/softrobots/sensors/pneumaticSensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def PneumaticSensor(surfaceMeshFileName=None,
if surfaceMeshFileName.endswith(".stl"):
PneumaticSensor.addObject('MeshSTLLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
elif surfaceMeshFileName.endswith(".obj"):
PneumaticSensor.addObject('MeshObjLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
PneumaticSensor.addObject('MeshOBJLoader', name='MeshLoader', filename=surfaceMeshFileName, rotation=rotation, translation=translation, scale=uniformScale)
else :
Sofa.msg_error("Your surfaceMeshFileName extension is not the right one, you have to give a surfacic mesh with .stl or .obj extension")
return None
Expand Down

0 comments on commit 43e9eb7

Please sign in to comment.