OpenVDB  9.0.1
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

using CoordT = typename TreeOrAccT::CoordType
protected
using ValueT = typename TreeOrAccT::ValueType
protected

Constructor & Destructor Documentation

TricubicSampler ( const TreeOrAccT &  acc)
inline

Construction from a Tree or ReadAccessor.

Member Function Documentation

const TreeOrAccT& accessor ( ) const
inline
static ValueT sample ( const Vec3T< RealT > &  uvw,
const ValueT(&)  c[64] 
)
inlinestatic
TreeOrAccT::ValueType sample ( const Vec3T< RealT > &  xyz,
const ValueT(&)  C[64] 
)
void stencil ( const CoordT ijk,
ValueT(&)  c[64] 
) const
inline

Extract the stencil of 8 values.

Member Data Documentation

const TreeOrAccT& mAcc
protected