Navigation
API > API/Runtime > API/Runtime/GeometryCore
Generic way to add edge connectivity iteration support to any mesh that looks like a TTriangleMeshAdapter The interface is designed to match a subset of the FDynamicMesh3 query methods Note that unlike FDynamicMesh3, it does support edge-non-manifold mesh topology (i.e. edges with more than 2 triangles)
| Name | FTriangleMeshAdapterEdgeConnectivity |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/MeshAdapter.h |
| Include Path | #include "MeshAdapter.h" |
Syntax
class FTriangleMeshAdapterEdgeConnectivity
Derived Classes
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FLocalIntArray | TArray< int32, TInlineAllocator< 8 > > | MeshAdapter.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EIDtoTIDs | TArray< FIndex2i > | MeshAdapter.h | ||
| EIDtoTIDSpillID | TArray< int32 > | These arrays will only be populated if the input mesh was 'edge-non-manifold' i.e., had more than two triangle on some edges Each non-manifold edge has a 'Spill ID' corresponding to an array of all additional neighboring triangle IDs | MeshAdapter.h | |
| EIDtoVIDs | TArray< FIndex2i > | MeshAdapter.h | ||
| SpillIDtoTIDs | TArray< TArray< int32, TInlineAllocator< 2 > > > | MeshAdapter.h | ||
| TIDtoEIDs | TArray< FIndex3i > | MeshAdapter.h | ||
| VIDtoEIDs | TArray< FLocalIntArray > | MeshAdapter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BuildEdgeConnectivity
(
const TriangleMeshAdapterType& InMesh |
MeshAdapter.h | ||
void EnumerateEdgeTriangles
(
int32 EdgeID, |
Call TriangleFunc for each Triangle attached to the given EdgeID | MeshAdapter.h | |
void EnumerateVertexEdges
(
int32 VertexID, |
Call EdgeFunc for each one-ring edge of a vertex. | MeshAdapter.h | |
void EnumerateVertexTriangles
(
int32 VertexID, |
Call TriangleFunc for each one-ring triangle of a vertex. | MeshAdapter.h | |
void EnumerateVertexVertices
(
int32 VertexID, |
Call VertexFunc for each one-ring vertex neighbour of a vertex. | MeshAdapter.h | |
FIndex2i GetEdgeT
(
int32 EID |
Return up to two of the triangles on edge EID; to access all triangles of a non-manifold edge, use EnumerateEdgeTriangles. | MeshAdapter.h | |
FIndex2i GetEdgeV
(
int32 EID |
MeshAdapter.h | ||
int32 GetSingleVertexTriangle
(
int32 VID |
MeshAdapter.h | ||
FIndex3i GetTriEdges
(
int32 TID |
MeshAdapter.h | ||
bool IsBoundaryEdge
(
int32 EID |
MeshAdapter.h | ||
bool IsEdge
(
int32 EID |
MeshAdapter.h | ||
int32 MaxEdgeID() |
MeshAdapter.h |