Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh > API/Runtime/GeometryCore/DynamicMesh/Operations
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/Operations/MergeCoincidentMeshEdges.h |
| Include | #include "DynamicMesh/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
| Type | Name | Description | |
|---|---|---|---|
| bool | bWeldAttrsOnMergedEdges | Enable / Disable attribute welding along merged mesh edges | |
| int32 | FinalNumBoundaryEdges | Number of mesh boundary edges after merging | |
| int32 | InitialNumBoundaryEdges | Number of mesh boundary edges before merging | |
| double | MergeSearchTolerance | Edges are considered as potentially the same if their midpoints are within this distance. | |
| double | MergeVertexTolerance | Edges are coincident if both pairs of endpoint vertices are closer than this distance | |
| double | MergeVtxDistSqr | ||
| FDynamicMesh3 * | Mesh | The mesh that we are modifying | |
| bool | OnlyUniquePairs | Only merge unambiguous pairs that have unique duplicate-edge matches | |
| FSplitAttributeWelder | SplitAttributeWelder | Used to weld attributes at the merged edges |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMergeCoincidentMeshEdges
(
FDynamicMesh3* mesh |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Apply () |
Run the merge operation and modify .Mesh | |
| bool | IsSameEdge
(
const FVector3d& a, |
Returns true if endpoint vertices are within tolerance. |
Constants
| Name | Description |
|---|---|
| DEFAULT_TOLERANCE | Default tolerance is float ZeroTolerance |