Sofa.Simulation

General description

Controlling a simulation

Main controller of the scene. It 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:

Sofa.Simulation.animate(arg0, arg1)

Execute one timestep.

Sofa.Simulation.init(arg0)

Initialize the objects.

Sofa.Simulation.print(arg0)

Print all objects in the graph.

Sofa.Simulation.reset(arg0)

Reset to initial state.

Sofa.Simulation.load(arg0)

Load a scene from a file.

Sofa.Simulation.unload(arg0)

Unload a scene from a Node.

Sofa.Simulation.animateNSteps(root_node[, ...])

Advance the simulation by one time step (by default).

API Table of Content

Functions

animate

Execute one timestep.

animateNSteps

Advance the simulation by one time step (by default).

init

Initialize the objects.

initTextures

initVisual

load

Load a scene from a file.

print

Print all objects in the graph.

reset

Reset to initial state.

unload

Unload a scene from a Node.

updateVisual