diff --git a/examples/thematicalDocs/T4-DirectActuation/Actuators/Pneumatic/SurfaceConstraintPressure.py b/examples/thematicalDocs/T4-DirectActuation/Actuators/Pneumatic/SurfaceConstraintPressure.py index 5f6ac893..726ea218 100644 --- a/examples/thematicalDocs/T4-DirectActuation/Actuators/Pneumatic/SurfaceConstraintPressure.py +++ b/examples/thematicalDocs/T4-DirectActuation/Actuators/Pneumatic/SurfaceConstraintPressure.py @@ -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, diff --git a/python3/softrobots/inverse/actuators/pneumatic.py b/python3/softrobots/inverse/actuators/pneumatic.py index c325d12b..9961b7a6 100644 --- a/python3/softrobots/inverse/actuators/pneumatic.py +++ b/python3/softrobots/inverse/actuators/pneumatic.py @@ -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 diff --git a/python3/softrobots/inverse/effectors/volumeEffector.py b/python3/softrobots/inverse/effectors/volumeEffector.py index e00f6e6c..59eab764 100644 --- a/python3/softrobots/inverse/effectors/volumeEffector.py +++ b/python3/softrobots/inverse/effectors/volumeEffector.py @@ -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 diff --git a/python3/softrobots/sensors/pneumaticSensor.py b/python3/softrobots/sensors/pneumaticSensor.py index 1c6b099d..16ffaef3 100644 --- a/python3/softrobots/sensors/pneumaticSensor.py +++ b/python3/softrobots/sensors/pneumaticSensor.py @@ -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