Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh > API/Runtime/GeometryCore/DynamicMesh/FDynamicMesh3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include | #include "DynamicMesh/DynamicMesh3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMesh3.cpp |
void CompactCopy
(
const FDynamicMesh3 & CopyMesh,
bool bNormals,
bool bColors,
bool bUVs,
bool bAttributes,
FCompactMaps * CompactInfo
)
Remarks
Copy input mesh while compacting, i.e. removing unused vertices/triangles/edges. Note that it is currently unsafe to hold on to the attribute set pointer (returned from Attributes()) across the CompactCopy call, as the latter may rebuild an entirely new attribute set.
Parameters
| Name | Description |
|---|---|
| CopyMesh | Mesh to copy |
| bNormals | if true, will copy normals |
| bColors | if true, will copy colors |
| bUVs | if true, will copy UVs |
| bAttributes | if true, will copy attributes |
| CompactInfo | if not nullptr, will be filled with mapping indicating how vertex and triangle IDs were changed during compaction |