OpenVDB  1.2.0
Public Types | Public Member Functions | List of all members
EnrightField< ScalarT > Class Template Reference

Analytical, divergence-free and periodic vecloity field. More...

#include <LevelSetAdvect.h>

Public Types

typedef ScalarT ScalarType
 
typedef math::Vec3< ScalarT > VectorType
 

Public Member Functions

 EnrightField ()
 
math::Transform transform () const
 
VectorType operator() (const Vec3d &xyz, ScalarType time) const
 
VectorType operator() (const Coord &ijk, ScalarType time) const
 

Detailed Description

template<typename ScalarT = float>
class openvdb::v1_2_0::tools::EnrightField< ScalarT >

Analytical, divergence-free and periodic vecloity field.

Note
Primarily intended for debugging!

Member Typedef Documentation

typedef ScalarT ScalarType
typedef math::Vec3<ScalarT> VectorType

Constructor & Destructor Documentation

EnrightField ( )
inline

Member Function Documentation

math::Vec3< ScalarT > operator() ( const Vec3d xyz,
ScalarType  time 
) const
inline
Returns
the velocity in world units, evaluated at the world position xyz and at the specified time
VectorType operator() ( const Coord ijk,
ScalarType  time 
) const
inline
Returns
the velocity at the coordinate space position ijk
math::Transform transform ( ) const
inline
Returns
const reference to the identity transfrom between world and index space
Note
Use this method to determine if a client grid is aligned with the coordinate space of this velocity field

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