Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/WeldEdgeSequence.h |
| Include | #include "Operations/WeldEdgeSequence.h" |
Syntax
class FWeldEdgeSequence
Remarks
Weld a pair of group edges. The two input spans must be boundary spans. Their position in the world is irrelevant, as the welding will always be done to preserve appropriate triangle winding, i.e. so that the newly welded triangles are not flipped relative to their neighbor.
User can optionally allow triangle deletion which handles cases where the group edges are connected by an edge at the end points.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowFailedMerge | When true, failed calls to MergeEdges() will be handled by moving the edges without merging such that the final result appears to be welded but has invisible seam(s) instead of just failing. | |
| bool | bAllowIntermediateTriangleDeletion | Whether triangle deletion is allowed in order to merge edges which are connected by a different edge. | |
| FEdgeSpan | EdgeSpanToDiscard | ||
| FEdgeSpan | EdgeSpanToKeep | ||
| double | InterpolationT | When vertices are welded, each kept vertex will be placed at Lerp(KeepPos, RemovePos, InterpolationT) | |
| FDynamicMesh3 * | Mesh | Inputs/Outputs | |
| TArray< TPair< int, int > > | UnmergedEdgePairsOut | This is populated with pairs of eids which were not able to be merged. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FWeldEdgeSequence
(
FDynamicMesh3* Mesh, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| EWeldResult | |||
| EWeldResult | CheckInput () |
Verifies validity of input edges by ensuring they are correctly-oriented boundary edges | |
| EWeldResult | SplitEdgesToEqualizeSpanLengths
(
FDynamicMesh3& Mesh, |
Helper that splits the edges in the shorter span until the spans have the same number of edges. | |
| EWeldResult | Splits largest edges of the span with fewest vertices so that both input spans have an equal number of vertices and edges after | ||
| EWeldResult | Weld () |
Alters the existing mesh by welding two edge sequences, preserving sequence A. | |
| EWeldResult | Welds edge sequence together |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EWeldResult |