Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Similar to FMeshResolveTJunctions, but does not add any vertices to the mesh. Supports running multiple snapping iterations, because snapped-to edges may move in subsequent snaps.
| Name | FMeshSnapOpenBoundaries |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshResolveTJunctions.h |
| Include Path | #include "Operations/MeshResolveTJunctions.h" |
Syntax
class FMeshSnapOpenBoundaries
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshSnapOpenBoundaries
(
FDynamicMesh3* MeshIn |
Operations/MeshResolveTJunctions.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DEFAULT_TOLERANCE | const double | Default tolerance is float ZeroTolerance | Operations/MeshResolveTJunctions.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BoundaryEdges | TSet< int32 > | Subset of mesh boundary edges (otherwise all boundary edges are processed) | Operations/MeshResolveTJunctions.h | |
| bPreventFlips | bool | Whether to avoid snapping in cases where doing so would locally flip a triangle | Operations/MeshResolveTJunctions.h | |
| bSnapToEdges | bool | Whether vertices can be snapped to edges; otherwise, vertices are only snapped to other vertices | Operations/MeshResolveTJunctions.h | |
| DistanceTolerance | double | Distance threshold used for various checks (eg is vertex on edge, end endpoint tolerance, etc) | Operations/MeshResolveTJunctions.h | |
| MaxIterations | int32 | Maximum number of snapping iterations to perform | Operations/MeshResolveTJunctions.h | |
| Mesh | FDynamicMesh3 * | The mesh that we are modifying | Operations/MeshResolveTJunctions.h | |
| NumVertexSnaps | int32 | Number of vertex snaps performed (cumulative over iterations) | Operations/MeshResolveTJunctions.h | |
| VertexSnapToleranceFactor | double | Scalar multiple of DistanceTolerance at which we snap a vertex directly to another vertex, rather than an edge | Operations/MeshResolveTJunctions.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Apply() |
Run the resolve operation and modify .Mesh | Operations/MeshResolveTJunctions.h |