template<typename Sampler, typename TransformerType>
class openvdb_houdini::GridResampleOp< Sampler, TransformerType >
GridResampleOp is a functor class for use with UTvdbProcessTypedGrid() that samples an input grid into an output grid of the same type through a given transform.
The output grid's transform is unchanged by this operation.
- See also
- GridTransformOp, GridResampleToMatchOp
- Example:
namespace {
struct MyXform
{
bool isAffine() const { ... }
openvdb::Vec3d transform(const openvdb::Vec3d&) const { ... }
openvdb::Vec3d invTransform(const openvdb::Vec3d&) const { ... }
};
}
const Grid& inGrid = ...;
GridPtr outGrid = inGrid.copyGridWithNewTree();
GridResampleOp<openvdb::tools::BoxSampler, MyXform> op(outGrid, MyXform());
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:578