HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::TricubicSampler< TreeOrAccT > Class Template Reference

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

#include <SampleFromVoxels.h>

+ Inheritance diagram for nanovdb::TricubicSampler< TreeOrAccT >:

Public Member Functions

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

Static Public Member Functions

template<typename RealT , template< typename...> class Vec3T>
static __hostdev__ 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

Definition at line 688 of file SampleFromVoxels.h.

Member Typedef Documentation

template<typename TreeOrAccT >
using nanovdb::TricubicSampler< TreeOrAccT >::CoordT = typename TreeOrAccT::CoordType
protected

Definition at line 692 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
using nanovdb::TricubicSampler< TreeOrAccT >::ValueT = typename TreeOrAccT::ValueType
protected

Definition at line 691 of file SampleFromVoxels.h.

Constructor & Destructor Documentation

template<typename TreeOrAccT >
__hostdev__ nanovdb::TricubicSampler< TreeOrAccT >::TricubicSampler ( const TreeOrAccT &  acc)
inline

Construction from a Tree or ReadAccessor.

Definition at line 698 of file SampleFromVoxels.h.

Member Function Documentation

template<typename TreeOrAccT >
__hostdev__ const TreeOrAccT& nanovdb::TricubicSampler< TreeOrAccT >::accessor ( ) const
inline

Definition at line 703 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
template<typename RealT , template< typename...> class Vec3T>
static __hostdev__ ValueT nanovdb::TricubicSampler< TreeOrAccT >::sample ( const Vec3T< RealT > &  uvw,
const ValueT(&)  c[64] 
)
inlinestatic
template<typename TreeOrAccT >
template<typename RealT , template< typename...> class Vec3T>
__hostdev__ TreeOrAccT::ValueType nanovdb::TricubicSampler< TreeOrAccT >::sample ( const Vec3T< RealT > &  xyz,
const ValueT(&)  C[64] 
)

Definition at line 883 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
__hostdev__ void nanovdb::TricubicSampler< TreeOrAccT >::stencil ( const CoordT ijk,
ValueT(&)  c[64] 
) const
inline

Extract the stencil of 8 values.

Definition at line 713 of file SampleFromVoxels.h.

Member Data Documentation

template<typename TreeOrAccT >
const TreeOrAccT& nanovdb::TricubicSampler< TreeOrAccT >::mAcc
protected

Definition at line 694 of file SampleFromVoxels.h.


The documentation for this class was generated from the following file: