Thin wrapper class for a velocity grid.
More...
#include <openvdb/tools/VelocityFields.h>
template<typename VelGridT, typename Interpolator = BoxSampler>
class openvdb::v9_0::tools::DiscreteField< VelGridT, Interpolator >
Thin wrapper class for a velocity grid.
- Note
- Consider replacing BoxSampler with StaggeredBoxSampler
- Returns
- the interpolated velocity at the world space position xyz
- Warning
- Not threadsafe since it uses a ValueAccessor! So use one instance per thread (which is fine since its lightweight).
- Returns
- the velocity at the coordinate space position ijk
- Warning
- Not threadsafe since it uses a ValueAccessor! So use one instance per thread (which is fine since its lightweight).
- Returns
- const reference to the transform between world and index space
- Note
- Use this method to determine if a client grid is aligned with the coordinate space of the velocity grid.