FMergeCoincidentMeshEdges

[FMergeCoincidentMeshEdges](API\Plugins\DynamicMesh\Operations\FMergeCoincidentMeshEdges) finds pairs of boundary edges of the mesh that are identical (ie have endpoint vertices at the same locations) and merges the pair into a single edge.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Operations/MergeCoincidentMeshEdges.h

Include

#include "Operations/MergeCoincidentMeshEdges.h"

Syntax

class FMergeCoincidentMeshEdges

Remarks

FMergeCoincidentMeshEdges finds pairs of boundary edges of the mesh that are identical (ie have endpoint vertices at the same locations) and merges the pair into a single edge. This is similar to welding vertices but safer because it prevents bowties from being formed.

Currently if the two edges have the same "orientation" (ie from their respective triangles) they cannot be merged.

Variables

Name Description

Public variable

double

 

MergeSearchTolerance

Edges are considered as potentially the same if their midpoints are within this distance.

Public variable

double

 

MergeVertexTolerance

Edges are coincident if both pairs of endpoint vertices are closer than this distance

Protected variable

double

 

MergeVtxDistSqr

Public variable

FDynamicMesh3 &...

 

Mesh

The mesh that we are modifying

Public variable

bool

 

OnlyUniquePairs

Only merge unambiguous pairs that have unique duplicate-edge matches

Constructors

Name Description

Public function

FMergeCoincidentMeshEdges

(
    FDynamicMesh3* mesh
)

Functions

Name Description

Public function Virtual

bool

 

Apply()

Run the merge operation and modify .Mesh

Protected function Const

bool

 

IsSameEdge

(
    const FVector3d& a,
    const FVector3d& b,
    const FVector3d& c,
    const FVector3d& d
)

Returns true if endpoint vertices are within tolerance.

Constants

Name

Description

DEFAULT_TOLERANCE

Default tolerance is float ZeroTolerance

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