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.
Parameters:
| point (Point3d) |
ClosestParameterOnInterior
#Gets the axial parameters on the triangle interior which are closest to a test point.
ClosestPointOnBoundary
#Gets the point on the triangle boundary closest to a test point.
Parameters:
| point (Point3d) |
ClosestPointOnInterior
#Gets the point on the triangle interior or boundary closest to a test point.
Parameters:
| point (Point3d) |
Offset
#Offset this triangle by a specific amount.
Parameters:
| amount (double) | Offset distance. Positive distances offset towards the outside. |
Returns: Offset triangle.
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.
Parameters:
| t (double) | Parameter along boundary. |
PointAtBarycentric
#Gets a point within this triangle using barycentric coordinates.
PointAtTrilinear
#Gets a point within this triangle using trilinear coordinates.
PointOnInterior
#Gets the point on the triangle using the AB and AC primary axes.
ToMesh
#Create a mesh from this triangle.
Parameters:
| density (int) | Density, or number of mesh edges per triangle edge. |