Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMesh3
Description
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.
| Name | CompactCopy |
| 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.cpp |
void CompactCopy
(
const FDynamicMesh3 & CopyMesh,
bool bNormals,
bool bColors,
bool bUVs,
bool bAttributes,
FCompactMaps * CompactInfo
)
Parameters
| Name | Remarks |
|---|---|
| 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 |