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

#include <PointAdvect.h>

Public Types

using CptGridType = CptGridT
 
using CptAccessor = typename CptGridType::ConstAccessor
 
using CptValueType = typename CptGridType::ValueType
 

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 37 of file PointAdvect.h.

Member Typedef Documentation

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

Definition at line 41 of file PointAdvect.h.

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

Definition at line 40 of file PointAdvect.h.

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

Definition at line 42 of file PointAdvect.h.

Constructor & Destructor Documentation

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

Definition at line 44 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 48 of file PointAdvect.h.

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

Definition at line 54 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 61 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 65 of file PointAdvect.h.

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

Definition at line 60 of file PointAdvect.h.


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