Skip to main content

RemovingTriangle

A class in Root.Township, the global namespace.

One mesh triangle with its corners, centre, edges and normal, used when deciding which triangles to strip from combined static meshes.

Constructors​

MemberWhat it is
RemovingTriangle(List<Vector3> vertices, List<int> triangles, int startIndex)Creates a RemovingTriangle from vertices, triangles and startIndex.

Properties​

MemberWhat it is
Vector3 A { get; }First corner.
Vector3 B { get; }Second corner.
Vector3 C { get; }Third corner.
Vector3 Center { get; }Average of the three corners.
int[] Indices { get; }The three vertex indices.
Vector3[] LineSegments { get; }The three edge vectors: A minus B, B minus C and C minus A.
Vector3 Normal { get; }Unit normal of the triangle.
int StartIndex { get; }Index of the triangle's first entry in the triangle list.
bool WillRemove { get; set; }Whether the triangle will be removed. Starts true.

Used in​

Members of other types that take, return or hold a RemovingTriangle: