Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh > API/Runtime/GeometryCore/DynamicMesh/FDynamicMesh3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include | #include "DynamicMesh/DynamicMesh3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMesh3_Edits.cpp |
virtual EMeshResult MergeEdges
&40;
int KeepEdgeID,
int DiscardEdgeID,
FMergeEdgesInfo & MergeInfo,
bool bCheckValidOrientation
&41;
Remarks
Given two edges of the mesh, weld both their vertices, so that one edge is removed. This could result in one neighbour edge-pair attached to each vertex also collapsing, so those cases are detected and handled (eg middle edge-pair in abysmal ascii drawing below)
.... (dots are vertices) ../ Ok on success, or enum value indicates why operation cannot be applied. Mesh remains unmodified on error.
Parameters
| Name | Description |
|---|---|
| KeepEdgeID | index of the edge that should be kept |
| DiscardEdgeID | index of the edge that should be removed |
| MergeInfo | returned information about new and modified mesh elements |
| CheckValidOrientation | perform edge consistency orientation checks before merging. |