Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMesh3
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EMeshResult MergeVertices
(
int KeepVid, |
Weld DiscardVid to KeepVid. | DynamicMesh/DynamicMesh3.h | |
virtual EMeshResult MergeVertices
(
int KeepVid, |
Weld DiscardVid to KeepVid. Equivalent to calling the options overload with default options. | DynamicMesh/DynamicMesh3.h | |
virtual EMeshResult MergeVertices
(
int KeepVid, |
Weld DiscardVid to KeepVid, if topologically possible and options allow. | DynamicMesh/DynamicMesh3.h |
MergeVertices(int, int, FMergeVerticesInfo &)
Description
Weld DiscardVid to KeepVid. Equivalent to calling the options overload with default options and 0 for InterpolationT.
| Name | MergeVertices |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include Path | #include "DynamicMesh/DynamicMesh3.h" |
virtual EMeshResult MergeVertices
(
int KeepVid,
int DiscardVid,
FMergeVerticesInfo & MergeInfo
)
MergeVertices(int, int, double, FMergeVerticesInfo &)
Description
Weld DiscardVid to KeepVid. Equivalent to calling the options overload with default options.
| Name | MergeVertices |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include Path | #include "DynamicMesh/DynamicMesh3.h" |
virtual EMeshResult MergeVertices
(
int KeepVid,
int DiscardVid,
double InterpolationT,
FMergeVerticesInfo & MergeInfo
)
MergeVertices(int, int, double, const FMergeVerticesOptions &, FMergeVerticesInfo &)
Description
Weld DiscardVid to KeepVid, if topologically possible and options allow. If the vertices are connected by an existing edge, this resolves as a collapse of that edge, and therefore calls OnCollapseEdge in overlays. If not, but the two vertices share a vertex neighbor, this resolves as a weld of the intervening edges (failing if the edges are not boundary edges, since that would create non-manifold edge), and therefore calls OnMergeEdges in the overlays. Otherwise, the merge resolves as bowtie creation, and calls OnMergeVertices in the overlays.
| Name | MergeVertices |
| 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 MergeVertices
(
int KeepVid,
int DiscardVid,
double InterpolationT,
const FMergeVerticesOptions & Options,
FMergeVerticesInfo & MergeInfo
)
Ok on success, or enum value indicates why operation cannot be applied. Mesh remains unmodified on error.
Parameters
| Name | Remarks |
|---|---|
| KeepVid | vertex ID of the kept vertex |
| DiscardVid | vertex ID of the vertex whose triangles are reattached to the kept vertex |
| InterpolationT | the kept vertex is moved to Lerp(KeptPos, RemovePos, InterpolationT) |
| Options | set the options for the merge |
| MergeInfo | returned information about new and modified mesh elements |