3.1. Sofa
All SOFA key components supported by the SOFA consortium
Example
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
Defines how the scene is inited at the beginning, and updated at each time step |
|
Contains the general object hierarchy and data structures |
|
Controls the graphical user interface |
|
Manages the message API |
|
Defines SOFA types (BoundingBox) |
|
Defines all DataTypes for vector and matrices (Vec and Mat) |
|
Prefabs are python templates for a SOFA scene |
|
Constant library for an easier keyboard interaction. |
Utility Functions
|
API emitting error messages |
|
API emitting information messages |
|
API emitting warning messages |
|
API emitting deprecation messages |
Additional modules
Implements some topology component (Regular and SparseGridTopology) |
|
Implements the solver for constraint problems |
|
Implements linear springs between objects |
|
Exposes the rendering API using OpenGL |