Triangle Structure
Represents a triangle in a MeshGeometry.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CECore assembly)
Syntax
public struct Triangle :
System.IEquatable<Triangle>Remarks
A Triangle consists of three indices into a MeshGeometry.Vertices collection where the vertex coordinates are stored. The front of a triangle is the side where the vertices appear ordered in a clockwise fashion.
It is up to the application to make sure every Triangle in a collection of MeshGeometry.Triangles contain valid vertex indices.
Platforms
Windows, Linux, Android
Triangle Members
The Triangle type has the following members.
Constructors
| Name | Description |
|---|---|
| Triangle | Initializes a new instance of the Triangle class. |
Properties
| Name | Description |
|---|---|
| Vertex0 | Gets index of the first vertex in the triangle. |
| Vertex1 | Gets the index of the second vertex in the triangle. |
| Vertex2 | Gets the index of the third vertex in the triangle. |
Methods
| Name | Description |
|---|---|
| Equals | Overloaded. Determines whether two Triangle objects have the same value. |
| GetHashCode | Returns the hash code for this Triangle. |
| Determines whether two specified Triangle objects have the same value. | |
| Determines whether two specified Triangle objects have different values. | |
| ToString | Converts this Triangle to a human readable string. |