TTriLinearGridInterpolant

Tri-linear interpolant for a 3D dense Grid.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Implicit/GridInterpolant.h

Include

#include "Implicit/GridInterpolant.h"

Syntax

template<class GridType>
class TTriLinearGridInterpolant

Remarks

Tri-linear interpolant for a 3D dense Grid. Supports Grid translation via GridOrigin, but does not support scaling or rotation. If you need those, you can wrap this in something that does the xform.

GridType must have a GetValue() that returns a value to interpolate at a given FVector3i location (w/ locations ranging from [0,0,0] to Dimensions (exclusive))

Variables

Name Description

Public variable

double

 

CellSize

Public variable

FVector3i

 

Dimensions

Public variable

GridType *

 

Grid

Public variable

FVector3d

 

GridOrigin

Public variable

double

 

Outside

Value to return if query point is outside Grid (in an SDF outside is usually positive).

Constructors

Name Description

Public function

TTriLinearGridInterpolant

(
    GridType* Grid,
    FVector3d GridOrigin,
    double CellSize,
    FVector3i Dimensions
)

Functions

Name Description

Public function Const

FAxisAligned...

 

Bounds()

Protected function Const

void

 

get_value_pair

(
    int I,
    int J,
    int K,
    double& A,
    double& B
)

Public function Const

FVector3d

 

Gradient

(
    const FVector3d& Pt
)

Public function Const

double

 

Value

(
    const FVector3d& Pt
)

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