Triangle
ReferencesA 3D triangle defined by corner points.
Constructors
Properties
IsDegenerate
#Gets whether a triangle is degenerate, i.e. whether two or more points are coincident, or whether one of the corners is coincident with the opposite edge.
IsValid
#Gets whether all the corner points are valid. Degenerate triangles are not considered invalid.
Methods
AppendToMesh
#Append this triangle to an existing mesh.
ClosestParameterOnBoundary
#Gets the parameter on the triangle boundary closest to a test point.
ClosestParameterOnInterior
#Gets the axial parameters on the triangle interior which are closest to a test point.
Returns: True on success.
ClosestPointOnBoundary
#Gets the point on the triangle boundary closest to a test point.
ClosestPointOnInterior
#Gets the point on the triangle interior or boundary closest to a test point.
PointAlongBoundary
#Gets the point along the boundary of the triangle. The triangle boundary has a domain [0, 3] where each subsequent unit domain maps to a different edge.
PointAtBarycentric
#Gets a point within this triangle using barycentric coordinates.
PointAtTrilinear
#Gets a point within this triangle using trilinear coordinates.
Returns: Point at trilinear coordinates.
PointOnInterior
#Gets the point on the triangle using the AB and AC primary axes.
Returns: Point at parameter.
ToMesh
#Create a mesh from this triangle.
ToRounded
#Create a triagle curve with filleted corners.