GridTransformOp is a functor class for use with GridBase::apply() that samples an input grid into an output grid of the same type through a given affine transform.
More...
#include <openvdb_houdini/UT_VDBTools.h>
template<typename Sampler>
class openvdb_houdini::GridTransformOp< Sampler >
GridTransformOp is a functor class for use with GridBase::apply() that samples an input grid into an output grid of the same type through a given affine transform.
The output grid's transform is unchanged by this operation.
- See also
- GridResampleOp, GridResampleToMatchOp
- Example:
const Grid& inGrid = ...;
GridPtr outGrid = inGrid.copyGridWithNewTree();
openvdb::tools::GridTransformer xform(
pivot,
scale, rotate, ...);
GridTransformOp<openvdb::tools::QuadraticSampler> op(outGrid, xform);
void pivot(int i, int j, Mat3< T > &S, Vec3< T > &D, Mat3< T > &Q)
Definition: Mat3.h:682
MatType scale(const Vec3< typename MatType::value_type > &s)
Return a matrix that scales by s.
Definition: Mat.h:637
openvdb::GridBase::Ptr GridPtr
Definition: Utils.h:35
openvdb::GridBase Grid
Definition: Utils.h:34
A list of types (not necessarily unique)
Definition: TypeList.h:366
◆ GridTransformOp()
- Parameters
-
outGrid | a generic pointer to an output grid of the same type as the grid to be resampled |
t | a GridTransformer that defines an affine transform |
- Note
- GridTransformOp makes an internal copy of the
GridTransformer
and supplies the copy with a default Interrupter that replaces any existing interrupter.
◆ operator()()
void operator() |
( |
const GridType & |
inGrid | ) |
|
|
inline |