Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMeshEditor > API/Runtime/GeometryCore/FDynamicMeshEditor/DisconnectTriangles
Warnings * If the BoundaryLoops are not correct for the provided TriangleSet, this version will likely crash.
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMeshEditor.h |
| Include | #include "DynamicMeshEditor.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMeshEditor.cpp |
bool DisconnectTriangles
&40;
const TSet< int > & TriangleSet,
const TArray< FEdgeLoop > & BoundaryLoops,
TArray< FLoopPairSet > & LoopSetOut,
bool bAllowBoundaryVertices
&41;
Remarks
Variant of DisconnectTriangles that takes a precomputed set of BoundaryLoops of the triangles, and a TSet of Triangles. These are both computed internally by the version that only takes a TArray of Triangles.
If the BoundaryLoops are not correct for the provided TriangleSet, this version will likely crash.
Parameters
| Name | Description |
|---|---|
| Triangles | set of triangles |
| BoundaryLoops | precomputed set of boundary EdgeLoops of TriangleSet |
| LoopSetOut | returned set of boundary loops. LoopA is original loop which remains with "outer" triangles previously connected to TriangleSet, and LoopB is new boundary loop of TriangleSet |
| bAllowBoundaryVertices | if true, mesh boundary vertices are duplicated and left on the 'outer' loop, otherwise function aborts and returns false if a boundary vertex is encountered |