Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh > API/Runtime/GeometryCore/DynamicMesh/TDynamicMeshOverlay
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshOverlay.h |
| Include | #include "DynamicMesh/DynamicMeshOverlay.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMeshOverlay.cpp |
EMeshResult SetTriangle
(
int TriangleID,
const FIndex3i & TriElements,
bool bAllowElementFreeing
)
Remarks
Set the triangle to the given Element index tuple, and increment element reference counts
Parameters
| Name | Description |
|---|---|
| bAllowElementFreeing | If true, then any elements that were only referenced by this triangle become immediately unallocated if the triangle no longer references them. This can be set to false when remeshing across existing elements to avoid them being freed while temporarily unreferenced, but then it should eventually be followed by a call to FreeUnusedElements(). |