Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Operations > API/Runtime/GeometryCore/Operations/FLocalPlanarSimplify
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Operations/LocalPlanarSimplify.h |
| Include | #include "Operations/LocalPlanarSimplify.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Operations/LocalPlanarSimplify.cpp |
static bool CollapseWouldHurtTriangleQuality
&40;
const FDynamicMesh3 & Mesh,
const FVector3d & RemoveVNormal,
int32 RemoveV,
const FVector3d & RemoveVPos,
int32 KeepV,
const FVector3d & KeepVPos,
double TryToImproveTriQualityThreshold,
bool bHasMultipleNormals
&41;
Remarks
Test if a given edge collapse would cause a triangle flip or other unacceptable decrease in mesh quality Specialized for collapsing at flat triangles Test if a given edge collapse would cause a triangle flip or other unacceptable decrease in mesh quality
Parameters
| Name | Description |
|---|---|
| Mesh | The mesh to query |
| RemoveVNormal | Only used if bHasMultipleNormals==false, i.e. if the surface is locally flat, to avoid recomputing the normal. The normal for all triangles surrounding RemoveV. |
| RemoveV | The vertex to consider removing by an edge collapse |
| RemoveVPos | The position of the vertex RemoveV |
| KeepV | The vertex that is not being removed in the edge collapse |
| KeepVPos | The position of vertex KeepV |
| TryToImproveTriQualityThreshold | Threshold for triangle quality (see comment for class member, above) |
| bHasMultipleNormals | If false, assume the triangulation is locally flat, so we can use ExpectNormal instead of recomputing the expected normal |