template<typename GridT = Vec3fGrid, typename PointListT = std::vector<typename GridT::ValueType>,
bool StaggeredVelocity = false, typename InterrupterType = util::NullInterrupter>
class openvdb::v12_0::tools::PointAdvect< GridT, PointListT, StaggeredVelocity, InterrupterType >
Performs passive or constrained advection of points in a velocity field represented by an OpenVDB grid and an optional closest-point-transform (CPT) represented in another OpenVDB grid. Note the CPT is assumed to be in world coordinates and NOT index coordinates! Supports both collocated velocity grids and staggered velocity grids
The PointListT
template argument refers to any class with the following interface (e.g., std::vector<openvdb::Vec3f>):
...
public:
using value_type = internal_vector3_type;
value_type& operator[](int n);
};
Index32 Index
Definition Types.h:54
- Note
- All methods (except size) are assumed to be thread-safe and the positions are returned as non-const references since the advection method needs to modify them!