OpenVDB  2.0.0
Public Member Functions | Static Public Member Functions | List of all members
TileSampler< PointSampler, TreeT > Struct Template Reference

For point sampling, tree traversal is less expensive than testing bounding box membership. More...

#include <GridTransformer.h>

Inherits PointSampler.

Public Member Functions

 TileSampler (const CoordBBox &, const typename TreeT::ValueType &, bool)
 

Static Public Member Functions

static const char * name ()
 
static int radius ()
 
static bool mipmap ()
 
static bool consistent ()
 
template<class TreeT >
static bool sample (const TreeT &inTree, const Vec3R &inCoord, typename TreeT::ValueType &result)
 Sample inTree at the nearest neighbor to inCoord and store the result in result. More...
 

Detailed Description

template<typename TreeT>
struct openvdb::v2_0_0::tools::internal::TileSampler< PointSampler, TreeT >

For point sampling, tree traversal is less expensive than testing bounding box membership.

Constructor & Destructor Documentation

TileSampler ( const CoordBBox &  ,
const typename TreeT::ValueType &  ,
bool   
)
inline

Member Function Documentation

static bool consistent ( )
inlinestaticinherited
static bool mipmap ( )
inlinestaticinherited
static const char* name ( )
inlinestaticinherited
static int radius ( )
inlinestaticinherited
bool sample ( const TreeT &  inTree,
const Vec3R inCoord,
typename TreeT::ValueType &  result 
)
inlinestaticinherited

Sample inTree at the nearest neighbor to inCoord and store the result in result.

Returns
true if the sampled value is active.

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