Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/InfoTypes.h |
| Include | #include "DynamicMesh/InfoTypes.h" |
Syntax
struct FMeshTriOrderedEdgeID
Remarks
FMeshTriOrderedEdgeID identifies an oriented edge in a triangle mesh based on indices into the triangle vertices. IE if a triangle has vertices [A,B,C], then an oriented edge could be (A,B) or (B,A), or any of the other 4 permutations. So the ordered edge in the triangle can be represented as two vertex indices, and the full encoding is (TriangleID, J, K) where J and K are in range 0/1/2.
This type of edge identifier is applicable on any indexed mesh, even if the mesh does not store explicit edge IDs. In addition, this identifier is stable across mesh topological changes, ie if two connected triangles are unlinked (ie the shared edge becomes two edges, and the 2 vertices become 4), the FMeshTriOrderedEdgeID will still refer to the correct oriented edge, as it does not explicitly depend on the Vertex or Edge IDs, only the ordering within the triangle.
Note that cycling or permuting the vertices of a triangle will change/break these indices.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | TriangleID | The index of the mesh Triangle | |
| unsigned: 2 | VertIndexA | The 0/1/2 index of the first vertex in the triangles tuple of vertices | |
| unsigned: 2 | VertIndexB | The 0/1/2 index of the second vertex in the triangles tuple of vertices |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMeshTriOrderedEdgeID
(
int32 TriangleIDIn, |