Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TDynamicMeshOverlay
Description
Goes through elements and frees any whose reference counts indicate that they are not being used. This is usually not necessary since most operations that remove references will go ahead and do this, but it may be used, for instance, after SetTriangle is called with bAllowElementFreeing set to false.
| Name | FreeUnusedElements |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshOverlay.h |
| Include Path | #include "DynamicMesh/DynamicMeshOverlay.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMeshOverlay.cpp |
void FreeUnusedElements
(
const TSet < int > * ElementsToCheck
)
Parameters
| Name | Remarks |
|---|---|
| ElementsToCheck | If provided, only these element ID's will be checked. |