OpenVDB
2.0.0
|
#include <PointAdvect.h>
Public Types | |
typedef GridT | GridType |
typedef PointListT | PointListType |
typedef PointListT::value_type | LocationType |
typedef VelocityIntegrator < GridT, StaggeredVelocity > | VelocityFieldIntegrator |
Public Member Functions | |
PointAdvect (const GridT &velGrid, InterrupterType *interrupter=NULL) | |
PointAdvect (const PointAdvect &other) | |
virtual | ~PointAdvect () |
bool | earlyOut () const |
If the order of the integration is set to zero no advection is performed. More... | |
void | setThreaded (bool threaded) |
get & set More... | |
bool | getThreaded () |
void | setIntegrationOrder (unsigned int order) |
void | advect (PointListT &points, float dt, unsigned int advIterations=1) |
Constrained advection of a list of points over a time = dt * advIterations. More... | |
void | operator() (const tbb::blocked_range< size_t > &range) const |
Never call this method directly - it is use by TBB and has to be public! More... | |
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>):
typedef GridT GridType |
typedef PointListT::value_type LocationType |
typedef PointListT PointListType |
typedef VelocityIntegrator<GridT, StaggeredVelocity> VelocityFieldIntegrator |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
Constrained advection of a list of points over a time = dt * advIterations.
|
inline |
If the order of the integration is set to zero no advection is performed.
|
inline |
|
inline |
Never call this method directly - it is use by TBB and has to be public!
|
inline |
|
inline |
get & set