VectorUtil::TriGradient

Calculate gradient of scalar field values fi,fj,fk defined at corners of triangle Vi,Vj,Vk and interpolated across triangle using linear basis functions.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/VectorUtil.h

Include

#include "VectorUtil.h"

Syntax

namespace VectorUtil
{
    template<typename RealType>
    FVector3< RealType > VectorUtil::TriGradient
    (
        FVector3< RealType > Vi,
        FVector3< RealType > Vj,
        FVector3< RealType > Vk,
        RealType fi,
        RealType fj,
        RealType fk
    )
}

Remarks

Calculate gradient of scalar field values fi,fj,fk defined at corners of triangle Vi,Vj,Vk and interpolated across triangle using linear basis functions. This gradient is a 3D vector lying in the plane of the triangle (or zero if field is constant).

Returns

gradient (3D vector) lying in plane of triangle.

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