Struct TriFace
Triangle face defined by three vertex indices (int). (12 bytes)
Inherited Members
Namespace: ZLab.Discrete.Geometry
Assembly: ZLab.Discrete.dll
Syntax
public readonly struct TriFace
Constructors
| Name | Description |
|---|---|
| TriFace(int, int, int) | Creates a triangle face from three vertex indices. |
Fields
| Name | Description |
|---|---|
| A | Index of the first vertex of the triangle. |
| B | Index of the second vertex of the triangle. |
| C | Index of the third vertex of the triangle. |
Properties
| Name | Description |
|---|---|
| IsValid | Checks if the triangle face is valid (all indices are non-negative). |
Methods
| Name | Description |
|---|---|
| Equals(object?) | Checks if two triangle faces are equal (same vertex indices in the same order). |
| Equals(TriFace) | Checks if two triangle faces are equal (same vertex indices in the same order). |
| GetHashCode() | Computes a hash code for the triangle face. |
| QueryVertices(Vector3[], out Vector3, out Vector3, out Vector3) | Fetches the vertex positions from the provided vertex array. |
| ToString() | String representation of the triangle face. |
Operators
| Name | Description |
|---|---|
| operator ==(TriFace, TriFace) | Equality operator for triangle faces. |
| operator !=(TriFace, TriFace) | Inequality operator for triangle faces. |