Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FLocalPlanarSimplify
Description
Collapse degenerate edges. Note that SimplifyAlongEdges currently assumes that this (or a similar pass) is run beforehand
| Name | CollapseDegenerateEdges |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Operations/LocalPlanarSimplify.h |
| Include Path | #include "Operations/LocalPlanarSimplify.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Operations/LocalPlanarSimplify.cpp |
static void CollapseDegenerateEdges
(
FDynamicMesh3 & Mesh,
TSet< int32 > & InOutEdges,
bool bRemoveAllDegenerateFromInputSet,
double DegenerateEdgeLenTol,
TSet< int > * TriangleSelection
)
Parameters
| Name | Remarks |
|---|---|
| Mesh | Mesh to repair |
| InOutEdges | Set of edges to consider for collapse; optionally updated by removing edges at they are collapsed |
| bRemoveAllDegenerateFromInputSet | Whether we should also check whether the neighbor edges removed by collapse were also in the set. Note: Often not needed, and has additional processing cost. |
| DegenerateEdgeLenTol | Tolerance length at which we collapse edges |
| TriangleSelection | Optional set tracking an active selection. Any triangles removed by collapse will also be removed from the set. |