Sofa

All the key components supported by the sofa-consortium

General description

Example of use

import Sofa.Core
import Sofa.Simulation
import SofaRuntime
SofaRuntime.importPlugin("Sofa.Component")

n = Sofa.Core.Node("MyNode")
n.addChild("Node2")
n.addObject("MechanicalObject", name="dofs")

Sofa.Simulation.init(n)
Sofa.Simulation.print(n)

Sub-modules

Simulation

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.

Core

The general object hierarchy and data structures.

Gui

Control the graphical user interface

Helper

Tooling to print messages or create vectors of different type.

Types

Sofa types

SofaTypes

SofaType package

prefab

constants

Constants library Library for an easier keyboard interaction

Utility Functions

msg_error(target, message)

msg_info(target, message)

msg_warning(target, message)

msg_deprecated(target, message)

Plugins

SofaBaseTopology

SofaConstraintSolver

SofaDeformable

SofaGL