mor.utility.sceneCreation.saveElements
- saveElements(node, dt, forcefield)[source]
Depending on the forcefield will go search for the right kind of elements (tetrahedron/triangles…) to save
argument
type
definition
node
from which node will search to save elements
dt
sc
time step of our SOFA scene
forcefield
list(str)
list of path to the forcefield working on theelements we want to save seeforcefieldAfter determining what to save we will add an animation with a duration of 0 that will be executed only once when the scene is launched saving the elements.
To do that we use
splib.animation.animate- Returns:
None