Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/FastWinding.h |
Include |
#include "Spatial/FastWinding.h" |
namespace FastTriWinding
{
template<class TriangleMeshType, class IterableTriangleIndices>
void FastTriWinding::ComputeCoeffs
(
const TriangleMeshType & Mesh,
const IterableTriangleIndices & Triangles,
const FMeshTriInfoCache & TriCache,
FVector3d & P,
double & R,
FVector3d & Order1,
FMatrix3d & Order2
)
}
Precompute constant coefficients of triangle winding number approximation P: 'Center' of expansion for Triangles (area-weighted centroid avg) R: max distance from P to Triangles Order1: first-order vector coeff Order2: second-order matrix coeff TriCache: precomputed triangle centroid/normal/area (todo either support passing in as possibly-nullptr or remove commented-out null branches!)