OpenVDB  0.104.0
Public Types | Public Member Functions | Protected Attributes | List of all members
CptImpl< InGridType, MapType, Scheme > 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::LeafNodeType LeafType
 
typedef tree::IteratorRange
< typename
InTreeType::LeafCIter > 
RangeType
 
typedef InTreeType::template
ValueConverter< Vec3Type >
::Type 
OutTreeType
 
typedef Grid< OutTreeTypeOutGridType
 

Public Member Functions

 CptImpl (const InGridType &grid, const MapType &map)
 
 CptImpl (const CptImpl &other, tbb::split)
 Copy constructor called by tbb::parallel_reduce threads. More...
 
 ~CptImpl ()
 
OutGridType::Ptr process (bool threaded=true, bool useWorldTransform=true)
 
void operator() (RangeType &range)
 
void join (const CptImpl &other)
 

Protected Attributes

const InGridType * mInputGrid
 
OutGridType::Ptr mOutputGrid
 
const MapType * mMap
 
bool mUseWorldTransform
 

Detailed Description

template<typename InGridType, typename MapType, math::DScheme Scheme>
class openvdb::v0_104_0::tools::CptImpl< InGridType, MapType, Scheme >

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::LeafNodeType LeafType
typedef InTreeType::template ValueConverter<Vec3Type>::Type OutTreeType
typedef tree::IteratorRange<typename InTreeType::LeafCIter> RangeType
typedef InGridType::ValueType Real

Constructor & Destructor Documentation

CptImpl ( const InGridType &  grid,
const MapType &  map 
)
inline
CptImpl ( const CptImpl< InGridType, MapType, Scheme > &  other,
tbb::split   
)
inline

Copy constructor called by tbb::parallel_reduce threads.

~CptImpl ( )
inline

Member Function Documentation

void join ( const CptImpl< InGridType, MapType, Scheme > &  other)
inline
void operator() ( RangeType range)
inline
OutGridType::Ptr process ( bool  threaded = true,
bool  useWorldTransform = true 
)
inline

Member Data Documentation

const InGridType* mInputGrid
protected
const MapType* mMap
protected
OutGridType::Ptr mOutputGrid
protected
bool mUseWorldTransform
protected

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