Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMesh3
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EMeshResult MergeEdges
(
int KeepEdgeID, |
Weld one edge to the other. | DynamicMesh/DynamicMesh3.h | |
virtual EMeshResult MergeEdges
(
int KeepEdgeID, |
Given two edges of the mesh, weld both their vertices, so that one edge is removed. | DynamicMesh/DynamicMesh3.h |
MergeEdges(int, int, FMergeEdgesInfo &, bool)
Description
Weld one edge to the other. Equivalent to calling the other overload with 0 for InterpolationT (i.e. the vertices stay at unmodified kept vertex positions).
| Name | MergeEdges |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include Path | #include "DynamicMesh/DynamicMesh3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMesh3_Edits.cpp |
virtual EMeshResult MergeEdges
(
int KeepEdgeID,
int DiscardEdgeID,
FMergeEdgesInfo & MergeInfo,
bool bCheckValidOrientation
)
MergeEdges(int, int, double, FMergeEdgesInfo &, bool)
Description
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) ../
| Name | MergeEdges |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include Path | #include "DynamicMesh/DynamicMesh3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMesh3_Edits.cpp |
virtual EMeshResult MergeEdges
(
int KeepEdgeID,
int DiscardEdgeID,
double InterpolationT,
FMergeEdgesInfo & MergeInfo,
bool bCheckValidOrientation
)
Ok on success, or enum value indicates why operation cannot be applied. Mesh remains unmodified on error.
Parameters
| Name | Remarks |
|---|---|
| KeepEdgeID | index of the edge that should be kept |
| DiscardEdgeID | index of the edge that should be removed |
| InterpolationT | each kept vertex is moved to Lerp(KeptPos, RemovePos, InterpolationT) |
| MergeInfo | returned information about new and modified mesh elements |
| CheckValidOrientation | perform edge consistency orientation checks before merging. Specifically, check that each discarded vertex is closer to the vertex it is being collapsed to than the other kept vertex (where the pairing is determined by the adjoining triangle winding). |