Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FNormalFlowRemesher
Description
Test to see if flipping an edge would improve "normal error". Normal error for a triangle is: 0.5 * (1.0 - TriangleNormal \cdot ProjectedNormal), where ProjectedNormal is the normal of the triangle returned by finding the closest point on ProjTarget. The normal error for an edge is the sum of errors for the edge's incident triangles.
| Name | EdgeFlipWouldReduceNormalError |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/NormalFlowRemesher.h |
| Include Path | #include "NormalFlowRemesher.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/NormalFlowRemesher.cpp |
bool EdgeFlipWouldReduceNormalError
(
int EdgeID,
double BadEdgeErrorThreshold,
double ImprovementRatioThreshold
) const
True iff (CurrentEdgeError > BadEdgeErrorThreshold) and (NewEdgeError < ImprovementRatioThreshold * CurrentEdgeError)
Parameters
| Name | Remarks |
|---|---|
| EdgeID | Edge to consider. |
| BadEdgeErrorThreshold | Only edges with this error or greater are candidates for flipping. |
| ImprovementRatioThreshold | New edge must have error less than old edge error times this ratio. |