Vertex2Frame
From SOFAWiki
For each point defined in an .obj file, this engine computes a set of rigid points using the normals. Normal vector will be collinear to the Z axis and orthonormal to X and Y as showed bellow:
Y | | / X | / | / |/_ _ _ _ _ Z/normal
Input Data's
- normals
- normals defined in the .obj file.
- vertices
- vertices defined in the .obj file.
Output Data's
- frames
- Set of rigid types oriented as described before.
Examples
Examples using this engine can be found in :
examples/Components/engine/vertex2Frame.scn
where the engine is used as follow:
<MeshLoader name="meshLoader" filename="mesh/icosahedron.obj"/> <Vertex2Frame name="vertex2frame" template="Rigid" vertices="@meshLoader.vertices" texCoords="@meshLoader.texCoords" normals="@meshLoader.normals" facets="@meshLoader.facets"/> <MechanicalObject name="dofs" template="Rigid" position="@../vertex2frame.frames" />
