FDynamicMesh3::MergeEdges

Given two edges of the mesh, weld both their vertices, so that one edge is removed.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/DynamicMesh3.h

Include

#include "DynamicMesh3.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/DynamicMesh3_Edits.cpp

Syntax

virtual EMeshResult MergeEdges
(
    int KeepEdgeID,
    int DiscardEdgeID,
    FMergeEdgesInfo & MergeInfo
)

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) ../

Returns

Ok on success, or enum value indicates why operation cannot be applied. Mesh remains unmodified on error.

Parameters

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss