 |
SlicerSliceTriangle Method |
Slices the triangle specified with p1, p2 and p3 with this Plane and adds the positions that are in front of the plane to the frontPositions list
and positions in the back of the plane to the backPositions list.
When triangulate is true, this method creates 4 triangles; when triangulate is false, this method creates 1 triangle and 1 four-sided polygon.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic void SliceTriangle(
Vector3 p1,
Vector3 p2,
Vector3 p3,
List<Vector3> frontPositions,
List<Vector3> backPositions,
bool triangulate = false
)
Parameters
- p1 Vector3
- first point as Vector3
- p2 Vector3
- second point as Vector3
- p3 Vector3
- third point as Vector3
- frontPositions ListVector3
- List of Vector3 that will get positions that are in front of this plane added
- backPositions ListVector3
- List of Vector3 that will get positions that are in the back of this plane added
- triangulate Boolean (Optional)
- when true, this method creates 4 triangles; when false, this method creates 1 triangle and 1 four-sided polygon
See Also