Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMesh3
Description
Remove a triangle from the mesh. Also removes any unreferenced edges after tri is removed. If bRemoveIsolatedVertices is true, then if you remove all tris from a vert, that vert is also removed. If bPreserveManifold, we check that you will not create a bow tie vertex (and return false). If this check is not done, you have to make sure you don't create a bow tie, because other code assumes we don't have bow ties, and will not handle it properly
| Name | RemoveTriangle |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include Path | #include "DynamicMesh/DynamicMesh3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMesh3_Edits.cpp |
EMeshResult RemoveTriangle
(
int TriangleID,
bool bRemoveIsolatedVertices,
bool bPreserveManifold
)