OpenVDB  0.104.0
Public Types | Public Member Functions | Protected Attributes | List of all members
Cpt< InGridType > Class Template Reference

Computes the Closest-Point-Transform (CPT) from a distance field. More...

#include <Cpt.h>

Public Types

typedef InGridType::TreeType InTreeType
 
typedef InGridType::ValueType Real
 
typedef math::Vec3< RealVec3Type
 
typedef InTreeType::template
ValueConverter< Vec3Type >
::Type 
OutTreeType
 
typedef Grid< OutTreeTypeOutGridType
 

Public Member Functions

 Cpt (const InGridType &grid)
 
 ~Cpt ()
 
OutGridType::Ptr process (bool threaded=true, bool useWorldTransform=true)
 

Protected Attributes

const InGridType * mInputGrid
 

Detailed Description

template<typename InGridType>
class openvdb::v0_104_0::tools::Cpt< InGridType >

Computes the Closest-Point-Transform (CPT) from a distance field.

Note
The current implementation assumes all the input distance values are represented by leaf voxels and not tiles. This is true for all narrow-band level sets which this class was originally developed for. In the future we will expand this class to also handle tile values.

Member Typedef Documentation

typedef InGridType::TreeType InTreeType
typedef InTreeType::template ValueConverter<Vec3Type>::Type OutTreeType
typedef InGridType::ValueType Real

Constructor & Destructor Documentation

Cpt ( const InGridType &  grid)
inline
~Cpt ( )
inline

Member Function Documentation

OutGridType::Ptr process ( bool  threaded = true,
bool  useWorldTransform = true 
)
inline

Member Data Documentation

const InGridType* mInputGrid
protected

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