ExtrudeSurface
From SOFAWiki
This engine extrude a surface and returns corresponding triangles.
Contents |
Input Data's
- triangles
- list of triangles of the object to extrude. /!\ It must me a vector of BaseMeshTopology::Triangle
- surfaceTriangles
- list of triangles of the surface to extrude. /!\ The type of triangle must be BaseMeshTopology::TriangleID, and not BaseMeshTopology::Triangle
- surfaceVertices
- list of positions
Output Data's
- extrusionVertices
- list of positions of the new triangles, created from extrusion
- extrusionTriangles
- list of triangles from extrusion (vector of BaseMeshTopology::Triangle)
Important Parameter
- heightFactor
- extrusion is based on normals. So, this factor defines the final height of the extrusion.
Examples
See multi-engines example. Typically, a line in scene file will be in this form :
<ExtrudeSurface name="extrusion1" template="Vec3d" triangles="@Topology.triangles" surfaceVertices="@MechanicalObject.rest_position" surfaceTriangles="@SurfaceIWant.indices" heightFactor="2.0"/>
