Navigation
API > API/Runtime > API/Runtime/GeometryCore
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))
| Name | TTriLinearGridInterpolant |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Implicit/GridInterpolant.h |
| Include Path | #include "Implicit/GridInterpolant.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Public/Intersection/ContainmentQueries3.h |
Syntax
template<class GridType, typename RealType, bool bScalarCellSize>
class TTriLinearGridInterpolant
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Implicit/GridInterpolant.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CellSizeType | std::conditional_t< bScalarCellSize, RealType, TVector< RealType > > | Type to use for CellSize. | Implicit/GridInterpolant.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CellSize | CellSizeType | Implicit/GridInterpolant.h | ||
| Dimensions | FVector3i | Implicit/GridInterpolant.h | ||
| Grid | GridType * | Implicit/GridInterpolant.h | ||
| GridOrigin | TVector< RealType > | Implicit/GridInterpolant.h | ||
| Outside | RealType | Value to return if query point is outside Grid (in an SDF outside is usually positive). | Implicit/GridInterpolant.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAxisAlignedBox3< RealType > Bounds() |
Implicit/GridInterpolant.h | ||
| Implicit/GridInterpolant.h | |||
| Implicit/GridInterpolant.h | |||
RealType Value
(
const TVector< RealType >& Pt |
Implicit/GridInterpolant.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void get_value_pair
(
int I, |
Implicit/GridInterpolant.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static RealType GetDim
(
CellSizeType CellSize, |
Implicit/GridInterpolant.h |