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

animate(arg0, arg1)

Execute one timestep If dt is 0, the dt parameter in the graph will be used.

animateNSteps(root_node[, n_steps, dt])

Advance the simulation by one time step (by default)

init(arg0)

Initialize the objects

initTextures(arg0)

Initialize the textures

initVisual(arg0)

Initialize the textures and other graphical resources

load(arg0)

Load a scene from a file

print(arg0)

Print all objects in the graph

reset(arg0)

Reset to initial state

unload(arg0)

Unload a scene from a Node

updateVisual(arg0)

Update the Visual Models: triggers the Mappings