GridResampleToMatchOp is a functor class for use with GridBase::apply() that samples an input grid into an output grid of the same type such that, after resampling, the input and output grids coincide, but the output grid's transform is unchanged.
More...
#include <openvdb_houdini/UT_VDBTools.h>
template<typename Sampler>
class openvdb_houdini::GridResampleToMatchOp< Sampler >
GridResampleToMatchOp is a functor class for use with GridBase::apply() that samples an input grid into an output grid of the same type such that, after resampling, the input and output grids coincide, but the output grid's transform is unchanged.
- See also
- GridTransformOp, GridResampleOp
- Example:
const Grid& inGrid = ...;
outGrid->setTransform(myTransform);
Abstract base class for typed grids.
Definition Grid.h:78
virtual GridBase::Ptr copyGridWithNewTree() const =0
Return a new grid of the same type as this grid whose metadata and transform are deep copies of this ...
bool apply(OpT &) const
If this grid resolves to one of the listed grid types, invoke the given functor on the resolved grid.
Definition Grid.h:1768
GridResampleToMatchOp is a functor class for use with GridBase::apply() that samples an input grid in...
Definition UT_VDBTools.h:154
openvdb::GridBase::Ptr GridPtr
Definition Utils.h:35
A list of types (not necessarily unique)
Definition TypeList.h:484
◆ GridResampleToMatchOp()
template<typename Sampler >
◆ operator()()
template<typename Sampler >
template<typename GridType >
void operator() |
( |
const GridType & |
inGrid | ) |
|
|
inline |