mor.utility.sceneCreation

Utility to construct and modify a SOFA scene

Functions

addAnimation

Add/or not animations defined by ObjToAnimate to the splib.animation.AnimationManagerController thanks to splib.animation.animate

addPlugin

Add plugin if not present in Sofa scene

createDebug

Will, from our original scene, remove all unnecessary component and add a ReadState component in order to see what happen during phase1 or phase3

getContainer

Search for TopologyContainer and return it

getNodeSolver

Get specific Solver if contained in Sofa.Core.Node.

modifyGraphScene

Modify the current scene to be able to reduce it

removeNode

From a Sofa.Core.Node get its first parent and remove Sofa.Core.Node.removeChild

removeNodes

Iterate over list of Sofa.Core.Node and remove them with removeNode

removeObject

From a Sofa.Core.Object get Sofa.Core.BaseContext and remove itself Sofa.Core.Node.removeObject

removeObjects

Iterate over list of Sofa.Core.Object and remove them with removeObject

searchObjectClassInGraphScene

Search in the Graph scene recursively for all the node with the same className as toFind

searchPlugin

Search if a plugin if used in a SOFA scene