8 #ifndef OPENVDB_HOUDINI_UT_VDBTOOLS_HAS_BEEN_INCLUDED 9 #define OPENVDB_HOUDINI_UT_VDBTOOLS_HAS_BEEN_INCLUDED 38 template<
typename Sampler>
49 mOutGrid(outGrid), mTransformer(t) {}
51 template<
typename Gr
idType>
54 typename GridType::Ptr outGrid = openvdb::gridPtrCast<GridType>(mOutGrid);
57 mTransformer.setInterrupter(interrupter.interrupter());
59 mTransformer.transformGrid<Sampler,
GridType>(inGrid, *outGrid);
64 openvdb::tools::GridTransformer mTransformer;
99 template<
typename Sampler,
typename TransformerType>
109 mOutGrid(outGrid), mTransformer(t) {}
111 template<
typename Gr
idType>
114 typename GridType::Ptr outGrid = openvdb::gridPtrCast<GridType>(mOutGrid);
116 openvdb::tools::GridResampler resampler;
119 resampler.setInterrupter(interrupter.interrupter());
121 resampler.transformGrid<Sampler>(mTransformer, inGrid, *outGrid);
126 const TransformerType mTransformer;
152 template<
typename Sampler>
158 template<
typename Gr
idType>
161 typename GridType::Ptr outGrid = openvdb::gridPtrCast<GridType>(mOutGrid);
163 openvdb::tools::resampleToMatch<Sampler>(inGrid, *outGrid, interrupter.interrupter());
172 #endif // OPENVDB_HOUDINI_UT_VDBTOOLS_HAS_BEEN_INCLUDED GridResampleToMatchOp(GridPtr outGrid)
Definition: UT_VDBTools.h:156
GridResampleOp is a functor class for use with UTvdbProcessTypedGrid() that samples an input grid int...
Definition: UT_VDBTools.h:100
GridResampleOp(GridPtr &outGrid, const TransformerType &t)
Definition: UT_VDBTools.h:108
Utility classes and functions for OpenVDB plugins.
openvdb::GridBase::Ptr GridPtr
Definition: Utils.h:35
Definition: AttributeTransferUtil.h:34
GridResampleToMatchOp is a functor class for use with GridBase::apply() that samples an input grid in...
Definition: UT_VDBTools.h:153
GridType
List of types that are currently supported by NanoVDB.
Definition: NanoVDB.h:216
void operator()(const GridType &inGrid)
Definition: UT_VDBTools.h:112
void operator()(const GridType &inGrid)
Definition: UT_VDBTools.h:159
Wrapper class that adapts a Houdini UT_Interrupt object for use with OpenVDB library routines...
Definition: Utils.h:174