OpenVDB
12.0.0
|
Specialization of GridSampler for construction from a ValueAccessor type. More...
#include <openvdb/tools/Interpolation.h>
Public Types | |
using | Ptr = SharedPtr< GridSampler > |
using | ValueType = typename TreeT::ValueType |
using | TreeType = TreeT |
using | GridType = Grid< TreeType > |
using | AccessorType = typename tree::ValueAccessor< TreeT > |
Public Member Functions | |
GridSampler (const AccessorType &acc, const math::Transform &transform) | |
const math::Transform & | transform () const |
template<typename RealType > | |
ValueType | sampleVoxel (const RealType &x, const RealType &y, const RealType &z) const |
Sample a point in index space in the grid. More... | |
ValueType | sampleVoxel (typename Coord::ValueType i, typename Coord::ValueType j, typename Coord::ValueType k) const |
Sample value in integer index space. More... | |
ValueType | isSample (const Coord &ijk) const |
Sample value in integer index space. More... | |
ValueType | isSample (const Vec3d &ispoint) const |
Sample in fractional index space. More... | |
ValueType | wsSample (const Vec3d &wspoint) const |
Sample in world space. More... | |
Specialization of GridSampler for construction from a ValueAccessor type.
using AccessorType = typename tree::ValueAccessor<TreeT> |
using Ptr = SharedPtr<GridSampler> |
using TreeType = TreeT |
using ValueType = typename TreeT::ValueType |
|
inline |
acc | a ValueAccessor to be sampled |
transform | is used when sampling world space locations. |
|
inline |
Sample value in integer index space.
ijk | the location in index space |
|
inline |
Sample in fractional index space.
ispoint | the location in index space |
|
inline |
Sample a point in index space in the grid.
x | Fractional x-coordinate of point in index-coordinates of grid |
y | Fractional y-coordinate of point in index-coordinates of grid |
z | Fractional z-coordinate of point in index-coordinates of grid |
|
inline |
Sample value in integer index space.
i | Integer x-coordinate in index space |
j | Integer y-coordinate in index space |
k | Integer x-coordinate in index space |
|
inline |
|
inline |
Sample in world space.
wspoint | the location in world space |