Sofa.Simulation
Defines how the scene is inited at the beginning, and updated at each time step
It derives from Base in order to use smart pointers and model the parameters as Datas, which makes their edition easy in the GUI
Example
import Sofa.Core
import SofaRuntime
SofaRuntime.importPlugin("SofaComponentAll")
n = Sofa.Core.Node("MyNode")
Sofa.Simulation.init(n)
Sofa.Simulation.print(n)
Functions
|
Execute one timestep If dt is 0, the dt parameter in the graph will be used. |
|
Advance the simulation by one time step (by default) |
|
Initialize the objects |
|
Initialize the textures |
|
Initialize the textures and other graphical resources |
|
Load a scene from a file |
|
Print all objects in the graph |
|
Reset to initial state |
|
Unload a scene from a Node |
|
Update the Visual Models: triggers the Mappings |