TrianglesInPlaneROI
From SOFAWiki
This engine has been moved into the PlaneROI engine: see [PlaneROI description]
Old scene using TrianglesInPlaneROI can be updated easily by changing only the names.
Indeed, the behaviour is the same and all Data names have been kept except the output:
indices is now the array of vertex indices in the PlaneROI triangleIndices should be used to have the array of triangle indices in the PlaneROI
This engine finds the triangles which are inside a given box computed from a plane defined by three points and a depth distance.
Input Data's
- X
- points of mechanical object.
- triangles
- list of the triangles of the topology
- plane
- builds a box using a plane defined by three points (p0, p1, P2) and a depth distance (d) as showed below :
_ _ _ _ _ _ _ _ _ _
/| /|
/ | / |
/ | _ _ _ _ _ _ _ _ /_ |
/_ _/ __ _ _ _ _ _ _ /p2/ /
/| / / / /
/ | / /| / /
/_ |/_ __ _ _ _ _ _ _/_|/ / d
| p0 | /p1 /
| / |/ /
|/_ _ _ __ _ _ _ _ _ _/ /
Output Data's
- indices
- indices of the triangles inside the box built from the plane.
Examples
Sorry! for the moment there are not explicit examples showing how this engine works.
