MeshPoint

References
public class MeshPoint
Represents a point that is found on a mesh.

Properties

ComponentIndex

#Since v5.0
public ComponentIndex ComponentIndex { get; }
Gets the component index of the intersecting element in the mesh.

EdgeIndex

#Since v5.0
public int EdgeIndex { get; }
When set, EdgeIndex is an index of an edge in the mesh's edge list.

EdgeParameter

#Since v5.0
public double EdgeParameter { get; }
Edge parameter when found.

FaceIndex

#Since v5.0
public int FaceIndex { get; }
FaceIndex is an index of a face in mesh.Faces. When ComponentIndex refers to a vertex, any face that uses the vertex may appear as FaceIndex. When ComponenctIndex refers to an Edge or EdgeIndex is set, then any face that uses that edge may appear as FaceIndex.

Mesh

#Since v5.0
public Mesh Mesh { get; }
The mesh that is related to this point.

Point

#Since v5.0
public Point3d Point { get; }
Gets the location (position) of this point.

T

#Since v5.0
public double[] T { get; }
Barycentric quad coordinates for the point on the mesh face mesh.Faces[FaceIndex]. If the face is a triangle disregard T[3] (it should be set to 0.0). If the face is a quad and is split between vertices 0 and 2, then T[3] will be 0.0 when point is on the triangle defined by vi[0], vi[1], vi[2], and T[1] will be 0.0 when point is on the triangle defined by vi[0], vi[2], vi[3]. If the face is a quad and is split between vertices 1 and 3, then T[2] will be 0.0 when point is on the triangle defined by vi[0], vi[1], vi[3], and m_t[0] will be 0.0 when point is on the triangle defined by vi[1], vi[2], vi[3].

Triangle

#Since v5.0
public char Triangle { get; }
Face triangle where the intersection takes place:

0 is unset

A is 0,1,2

B is 0,2,3

C is 0,1,3

D is 1,2,3

Methods

GetTriangle

#Since v5.0
public bool GetTriangle(out int a, out int b, out int c)
Gets the mesh face indices of the triangle where the intersection is on the face takes into consideration the way the quad was split during the intersection.
a (out int)
b (out int)
c (out int)