mor.wrapper.replaceAndSave

Functions that will be use during wrapping

Global Variable

forceFieldImplemented

List of ForceField implemented and there associated HyperReduced one This will be use to swap forcefield during scene creation with MORreplace

myModel
OrderedDict that will contain:
  • has key Sofa.node.name

  • has items list of tuple (type,argument) each one coresponding to a component

myMORModel

list of tuple (type,argument) each one coresponding to a component

pathToUpdate
forcefield

Methods

Functions

MORreplace

Will replace classical ForceField by HyperReduced one

modifyPath

Correct wrong link induce by the change later done in the scene