FastTriWinding::ComputeCoeffs

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!)

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/FastWinding.h

Include

#include "Spatial/FastWinding.h"

Syntax

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
    )
}

Remarks

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!)

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