Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/NormalFlowRemesher.h |
Include |
#include "NormalFlowRemesher.h" |
Source |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/NormalFlowRemesher.cpp |
bool EdgeFlipWouldReduceNormalError
(
int EdgeID,
double BadEdgeErrorThreshold,
double ImprovementRatioThreshold
) const
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.
True iff (CurrentEdgeError > BadEdgeErrorThreshold) and (NewEdgeError < ImprovementRatioThreshold * CurrentEdgeError)
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. |