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

animate(arg0: Sofa.Core.Node, arg1: float) -> None

animateNSteps

animateNSteps(root_node: Sofa.Core.Node, n_steps: int = 1, dt: float = 0.0) -> None

init

init(arg0: Sofa.Core.Node) -> None

initRoot

initRoot(arg0: Sofa.Core.Node) -> None

initTextures

initTextures(arg0: Sofa.Core.Node) -> None

initVisual

initVisual(arg0: Sofa.Core.Node) -> None

load

load(arg0: str) -> object

print

print(arg0: Sofa.Core.Node) -> None

reset

reset(arg0: Sofa.Core.Node) -> None

unload

unload(arg0: Sofa.Core.Node) -> None

updateVisual

updateVisual(arg0: Sofa.Core.Node) -> None