OpenVDB: TricubicSampler< TreeOrAccT > Class Template Reference

OpenVDB 9.0.0

Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | List of all members
TricubicSampler< TreeOrAccT > Class Template Reference

Tri-cubic sampler, i.e. third order, interpolator. More...

`#include <nanovdb/util/SampleFromVoxels.h>`

Inherited by SampleFromVoxels< TreeOrAccT, 3, false >, and SampleFromVoxels< TreeOrAccT, 3, true >.

## Public Member Functions
| TricubicSampler (const TreeOrAccT &acc)
| Construction from a Tree or ReadAccessor. More...
const TreeOrAccT & | accessor () const
void | stencil (const CoordT &ijk, ValueT(&c)[64]) const
| Extract the stencil of 8 values. More...
template<typename RealT , template< typename... > class Vec3T>
TreeOrAccT::ValueType | sample (const Vec3T< RealT > &xyz, const ValueT(&C)[64])

## Static Public Member Functions
template<typename RealT , template< typename... > class Vec3T>
static ValueT | sample (const Vec3T< RealT > &uvw, const ValueT(&c)[64])

## Protected Types
using | ValueT = typename TreeOrAccT::ValueType
using | CoordT = typename TreeOrAccT::CoordType

## Protected Attributes
const TreeOrAccT & | mAcc

## Detailed Description

template<typename TreeOrAccT>
class nanovdb::TricubicSampler< TreeOrAccT >

Tri-cubic sampler, i.e. third order, interpolator.

See the following paper for implementation details: Lekien, F. and Marsden, J.: Tricubic interpolation in three dimensions. In: International Journal for Numerical Methods in Engineering (2005), No. 63, p. 455-471

## Member Typedef Documentation

## ◆ CoordT

using CoordT = typename TreeOrAccT::CoordType
| protected

## ◆ ValueT

using ValueT = typename TreeOrAccT::ValueType
| protected

## Constructor & Destructor Documentation

## ◆ TricubicSampler()

TricubicSampler | ( | const TreeOrAccT & | acc | ) |
| inline

Construction from a Tree or ReadAccessor.

## Member Function Documentation

## ◆ accessor()

const TreeOrAccT & accessor | ( |  | ) | const
| inline

## ◆ sample() [1/2]

static ValueT sample | ( | const Vec3T< RealT > & | uvw,
|  | const ValueT(&) | c[64]
| ) |  |
| inlinestatic

## ◆ sample() [2/2]

TreeOrAccT::ValueType sample | ( | const Vec3T< RealT > & | xyz,
|  | const ValueT(&) | C[64]
| ) |  |

## ◆ stencil()

void stencil | ( | const CoordT & | ijk,
|  | ValueT(&) | c[64]
| ) |  | const
| inline

Extract the stencil of 8 values.

## Member Data Documentation

## ◆ mAcc

const TreeOrAccT& mAcc
| protected