template<typename VelGridT, typename Interpolator = BoxSampler>
class openvdb::v1_2_0::tools::DiscreteField< VelGridT, Interpolator >
Thin wrapper class for a velocity grid.
Below are two simple wrapper classes for advection velocity fields DiscreteField wraps a velocity grid and EnrightField is mostly intended for debugging (it's an analytical divergence free and periodic field). They both share the same API required by the LevelSetAdvection class defined below. Thus, any class with this API should work with LevelSetAdvection. Note the Field wrapper classes below always assume the velocity is represented in the world-frame of reference. For DiscreteField this implies the input grid must contain velocities in world coordinates.
- Note
- Consider replacing BoxSampler with StaggeredBoxSampler