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

Tri-quadratic sampler, i.e. second order, interpolator. More...

#include <nanovdb/util/SampleFromVoxels.h>

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

Public Types

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

Public Member Functions

 TriquadraticSampler (const TreeOrAccT &acc)
 Protected constructor from a Tree or ReadAccessor. More...
 
const TreeOrAccT & accessor () const
 
void stencil (const CoordT &ijk, ValueT(&v)[3][3][3]) const
 Extract the stencil of 27 values. More...
 
template<typename RealT , template< typename... > class Vec3T>
TreeOrAccT::ValueType sample (const Vec3T< RealT > &uvw, const ValueT(&v)[3][3][3])
 

Static Public Member Functions

template<typename RealT , template< typename... > class Vec3T>
static ValueT sample (const Vec3T< RealT > &uvw, const ValueT(&v)[3][3][3])
 
static bool zeroCrossing (const ValueT(&v)[3][3][3])
 

Static Public Attributes

static const int ORDER = 1
 

Protected Attributes

const TreeOrAccT & mAcc
 

Detailed Description

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

Tri-quadratic sampler, i.e. second order, interpolator.

Member Typedef Documentation

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

Constructor & Destructor Documentation

TriquadraticSampler ( const TreeOrAccT &  acc)
inline

Protected constructor from a Tree or ReadAccessor.

Member Function Documentation

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

Extract the stencil of 27 values.

bool zeroCrossing ( const ValueT(&)  v[3][3][3])
inlinestatic

Member Data Documentation

const TreeOrAccT& mAcc
protected
const int ORDER = 1
static