Click or drag to resize
AB4D logo

PlaneSliceTriangle Method

Slices the triangle specified with p1, p2 and p3 with this Plane and adds the positions that in 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: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public void SliceTriangle(
	Point3D p1,
	Point3D p2,
	Point3D p3,
	List<Point3D> frontPositions,
	List<Point3D> backPositions,
	bool triangulate = false
)

Parameters

p1  Point3D
first point as Point3D
p2  Point3D
second point as Point3D
p3  Point3D
third point as Point3D
frontPositions  ListPoint3D
List of Point3D that will get positions that are in front of this plane added
backPositions  ListPoint3D
List of Point3D 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