Thin wrapper class for a velocity grid.
More...
#include <VelocityFields.h>
template<typename VelGridT, typename Interpolator = BoxSampler>
class openvdb::v6_0::tools::DiscreteField< VelGridT, Interpolator >
Thin wrapper class for a velocity grid.
- Note
- Consider replacing BoxSampler with StaggeredBoxSampler
◆ ValueType
◆ VectorType
◆ DiscreteField() [1/2]
◆ DiscreteField() [2/2]
◆ BOOST_STATIC_ASSERT()
BOOST_STATIC_ASSERT |
( |
boost::is_floating_point< ValueType >::value |
| ) |
|
◆ operator()() [1/2]
- 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).
◆ operator()() [2/2]
- 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).
◆ transform()
- 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.
The documentation for this class was generated from the following file: