I’m sorry I’ve completely forgot to answer here
This is the solution that have been given to me :
visuNode = model.createChild('visualization')
visuNode.createObject('CylinderGridTopology', name='topology', radius=radius, length='25', drawQuads='0', n='3 3 25', axis='1 0 0')
It’s getting closer but still not good, maybe is there something wrong with the way I’ve created my beam ?
The beam :
model = solverNode.createChild('model')
model.createObject('MeshSTLLoader', name='surface', filename='mesh/#.stl')
model.createObject('Mesh', name="meshBeam", position=#,…
I would like to add a visual model on a beam
To do so i’ve initially created an object:
model.createObject('MeshSTLLoader', name='surface', filename=#)
Then the MechanicalObject of the beam :
model.createObject('MechanicalObject', template='Rigid3d', name='frame1', position=#)
And finally the link between my visual and the beam :
visu =…[Read more]
Hello @Hugo ,
I’ve managed to create the model I wanted, thanks for the help.
Out of curiosity, as you said the beam is oriented along the x axis and i’ve noticed that they are aiming at the origin of the beam, is it possible to change that parameter ?
I guess using the beam ‘backward’ (base of the beam as the end) would work but i’m not sure…[Read more]
I am using the cable actuator at the moment and yes it works when I want to bend the beam but I got a problem with the ‘rotation’ properties of the beam
I would like to rotate that beam on itself around one axis (X), when I try to do it with code, it does not work but when I tweak around the value inside SOFA GUI it works (under…[Read more]
I’m trying to make an endoscope with the BeamAdapter plugin and I would like to know if it was possible to see other kind of control from the object ‘InterventionalRadiologyController’.
Is it possible to combine a cable actuator with the previous controller ?