Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/TMeshSimplification
Description
Does N rounds of collapsing edges longer than fMinEdgeLength. Does not use Quadrics or priority queue. This is a quick way to get triangle count down on huge meshes (eg like marching cubes output).
| Name | FastCollapsePass |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/MeshSimplification.h |
| Include Path | #include "MeshSimplification.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/MeshSimplification.cpp |
virtual void FastCollapsePass
(
double MinEdgeLength,
int Rounds,
bool bMeshIsClosedHint,
uint32 MinTriangleCount
)
Parameters
| Name | Remarks |
|---|---|
| MinEdgeLength | collapse any edge longer than this |
| Rounds | number of collapse rounds |
| MeshIsClosedHint | if you know the mesh is closed, this pass this true to avoid some precomputes |
| MinTriangleCount | halt fast collapse if mesh falls below this triangle count |