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 = ...;
GridPtr outGrid = inGrid.copyGridWithNewTree();
outGrid->setTransform(myTransform);
GridResampleToMatchOp<openvdb::tools::QuadraticSampler> op(outGrid);
void operator() |
( |
const GridType & |
inGrid | ) |
|
|
inline |