FNormalFlowRemesher::EdgeFlipWouldReduceNormalError

Test to see if flipping an edge would improve "normal error".

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/NormalFlowRemesher.h

Include

#include "NormalFlowRemesher.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/NormalFlowRemesher.cpp

Syntax

bool EdgeFlipWouldReduceNormalError
(
    int EdgeID,
    double BadEdgeErrorThreshold,
    double ImprovementRatioThreshold
) const

Remarks

Test to see if flipping an edge would improve "normal error". Normal error for a triangle is: 0.5 * (1.0 - TriangleNormal 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.

Returns

True iff (CurrentEdgeError > BadEdgeErrorThreshold) and (NewEdgeError < ImprovementRatioThreshold * CurrentEdgeError)

Parameters

Parameter

Description

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss