OpenVDB  3.0.0
Public Types | Public Member Functions | List of all members
VelocitySampler< GridT, StaggeredVelocity > Class Template Reference

#include <PointAdvect.h>

Public Types

typedef GridT::ConstAccessor VelAccessor
 
typedef GridT::ValueType VelValueType
 

Public Member Functions

 VelocitySampler (const GridT &velGrid)
 
 VelocitySampler (const VelocitySampler &other)
 
 ~VelocitySampler ()
 
template<typename LocationType >
void sample (const LocationType &W, VelValueType &result) const
 

Detailed Description

template<typename GridT = Vec3fGrid, bool StaggeredVelocity = false>
class openvdb::v3_0_0::tools::VelocitySampler< GridT, StaggeredVelocity >

Class to hold a Vec3 field interperated as a velocity field. Primarily exists to provide a method(s) that integrate a passive point forward in the velocity field for a single time-step (dt)

Member Typedef Documentation

typedef GridT::ConstAccessor VelAccessor
typedef GridT::ValueType VelValueType

Constructor & Destructor Documentation

VelocitySampler ( const GridT &  velGrid)
inline
VelocitySampler ( const VelocitySampler< GridT, StaggeredVelocity > &  other)
inline
~VelocitySampler ( )
inline

Member Function Documentation

void sample ( const LocationType &  W,
VelValueType result 
) const
inline

Samples the velocity at position W onto result. Supports both staggered (i.e. MAC) and collocated velocity grids.


The documentation for this class was generated from the following file: