HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT > Class Template Reference

#include <PointAdvect.h>

Public Types

typedef CptGridT CptGridType
 
typedef CptGridType::ConstAccessor CptAccessor
 
typedef CptGridType::ValueType CptValueType
 

Public Member Functions

 ClosestPointProjector ()
 
 ClosestPointProjector (const CptGridType &cptGrid, int n)
 
 ClosestPointProjector (const ClosestPointProjector &other)
 
void setConstraintIterations (unsigned int cptIterations)
 
unsigned int numIterations ()
 
template<typename LocationType >
void projectToConstraintSurface (LocationType &W) const
 

Detailed Description

template<typename CptGridT = Vec3fGrid>
class openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >

Class that holds a Vec3 grid, to be interpreted as the closest point to a constraint surface. Supports a method to allow a point to be projected onto the closest point on the constraint surface. Uses Caching.

Definition at line 62 of file PointAdvect.h.

Member Typedef Documentation

template<typename CptGridT = Vec3fGrid>
typedef CptGridType::ConstAccessor openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::CptAccessor

Definition at line 66 of file PointAdvect.h.

template<typename CptGridT = Vec3fGrid>
typedef CptGridT openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::CptGridType

Definition at line 65 of file PointAdvect.h.

template<typename CptGridT = Vec3fGrid>
typedef CptGridType::ValueType openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::CptValueType

Definition at line 67 of file PointAdvect.h.

Constructor & Destructor Documentation

template<typename CptGridT = Vec3fGrid>
openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::ClosestPointProjector ( )
inline

Definition at line 69 of file PointAdvect.h.

template<typename CptGridT = Vec3fGrid>
openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::ClosestPointProjector ( const CptGridType cptGrid,
int  n 
)
inline

Definition at line 73 of file PointAdvect.h.

template<typename CptGridT = Vec3fGrid>
openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::ClosestPointProjector ( const ClosestPointProjector< CptGridT > &  other)
inline

Definition at line 79 of file PointAdvect.h.

Member Function Documentation

template<typename CptGridT = Vec3fGrid>
unsigned int openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::numIterations ( )
inline

Definition at line 86 of file PointAdvect.h.

template<typename CptGridT = Vec3fGrid>
template<typename LocationType >
void openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::projectToConstraintSurface ( LocationType &  W) const
inline

Entries in the CPT tree are the closest point to the constraint surface. The interpolation step in sample introduces error so that the result of a single sample may not lie exactly on the surface. The iterations in the loop exist to minimize this error.

Definition at line 90 of file PointAdvect.h.

template<typename CptGridT = Vec3fGrid>
void openvdb::OPENVDB_VERSION_NAME::tools::ClosestPointProjector< CptGridT >::setConstraintIterations ( unsigned int  cptIterations)
inline

Definition at line 85 of file PointAdvect.h.


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