Sofa.Simulation

General description

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)

API Table of Content

Functions

animate

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

animateNSteps

Advance the simulation by one time step (by default)

init

Initialize the objects

initTextures

Initialize the textures

initVisual

Initialize the textures and other graphical resources

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

Update the Visual Models: triggers the Mappings