Barycentric Mapping

Description:

Unlike RigidMapping, Barycentric Mapping can be used to attach points to a deformable body. The attached body coordinates are defined using the barycentric coordinates with respect to the parent cells. The parent cells are defined by the topology associated with the body points. Many topology components exist in SOFA to describe the organization of point sets, like TetrahedronSetTopologyContainer, HexahedronSetTopologyContainer, RegularGridTopology...
The most common use of Barycentric Mapping in SOFA is to attach a visual model or a collision model to an underlying behaviour model.

In the TutorialMappingLiverBarycentric scene, you get the following elements :


Key points

In this scene you actually have two kinds of barycentric mappings. A visual barycentric mapping, and a mechanical barycentric mapping.


Results

You can interact with the mouse to see how the two barycentric mappings work together in the scene.