Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMeshEditor
Description
Converts a loop to a sequence of edge identifiers that are both Vid and Eid independent. The identifiers are of the form (TriangleID, ([0,2] vert sub index, [0,2] vert sub index)), and they are used in some cases (extrude, inset) where we want to perform vertex splits along a region boundary (to remove bowties) but need to maintain a record of the original loop path. We don't use (TriangleID, Eid sub index) because that makes it harder to keep track of individual edge directionality.
| Name | ConvertLoopToTriVidPairSequence |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMeshEditor.h |
| Include Path | #include "DynamicMeshEditor.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMeshEditor.cpp |
static bool ConvertLoopToTriVidPairSequence
(
const FDynamicMesh3 & Mesh,
const TArray < int32 > & VidLoop,
const TArray < int32 > & EdgeLoop,
TArray < TPair< int32, TPair< int8, int8 > > > & TriVertPairsOut
)
false if not successful (usually due to a mismatch between VidLoop and EdgeLoop).
Parameters
| Name | Remarks |
|---|---|
| VidLoop | Vertex IDs of loop to convert. |
| EdgeLoop | Edge IDs of loop to convert, must match VidLoop. |
| TriVertPairsOut | Output |