OpenVDB  1.1.0
Public Member Functions | List of all members
MeshVoxelizer< DistTreeT, InterruptT > Class Template Reference

TBB class object to voxelize a mesh of triangles and/or quads into a collection of VDB grids, namely a square distance grid, closest primitive grid and a intersecting voxels grid (the voxels intersect the mesh). More...

#include <MeshToVolume.h>

Public Types

typedef DistTreeT::ValueType DistValueT
 Custom types. More...
 
typedef tree::ValueAccessor
< DistTreeT > 
DistAccessorT
 Custom types. More...
 
typedef DistTreeT::template
ValueConverter< Int32 >::Type 
IndexTreeT
 Custom types. More...
 
typedef tree::ValueAccessor
< IndexTreeT
IndexAccessorT
 Custom types. More...
 
typedef DistTreeT::template
ValueConverter< bool >::Type 
StencilTreeT
 Custom types. More...
 
typedef tree::ValueAccessor
< StencilTreeT
StencilAccessorT
 Custom types. More...
 

Public Member Functions

 MeshVoxelizer (const std::vector< Vec3s > &pointList, const std::vector< Vec4I > &polygonList, InterruptT *interrupter=NULL)
 
 ~MeshVoxelizer ()
 
void runParallel ()
 
void runSerial ()
 
 MeshVoxelizer (MeshVoxelizer< DistTreeT, InterruptT > &rhs, tbb::split)
 
void operator() (const tbb::blocked_range< size_t > &range)
 
void join (MeshVoxelizer< DistTreeT, InterruptT > &rhs)
 
DistTreeT & sqrDistTree ()
 
IndexTreeTprimIndexTree ()
 
StencilTreeTintersectionTree ()
 

Detailed Description

template<typename DistTreeT, typename InterruptT = util::NullInterrupter>
class openvdb::v1_1_0::tools::internal::MeshVoxelizer< DistTreeT, InterruptT >

TBB class object to voxelize a mesh of triangles and/or quads into a collection of VDB grids, namely a square distance grid, closest primitive grid and a intersecting voxels grid (the voxels intersect the mesh).

MeshVoxelizer

Note
Only the VDB leaf nodes that intersect the mesh are allocated, and only a narrow-band of (2-3) voxels (in proximity to the mesh's surface) are rasterized (populated with distance values and primitive indexes).

Member Typedef Documentation

typedef tree::ValueAccessor<DistTreeT> DistAccessorT

Custom types.

typedef DistTreeT::ValueType DistValueT

Custom types.

Custom types.

typedef DistTreeT::template ValueConverter<Int32>::Type IndexTreeT

Custom types.

Custom types.

typedef DistTreeT::template ValueConverter<bool>::Type StencilTreeT

Custom types.

Constructor & Destructor Documentation

MeshVoxelizer ( const std::vector< Vec3s > &  pointList,
const std::vector< Vec4I > &  polygonList,
InterruptT *  interrupter = NULL 
)
~MeshVoxelizer ( )
inline
MeshVoxelizer ( MeshVoxelizer< DistTreeT, InterruptT > &  rhs,
tbb::split   
)

Member Function Documentation

StencilTreeT& intersectionTree ( )
inline
void join ( MeshVoxelizer< DistTreeT, InterruptT > &  rhs)
void operator() ( const tbb::blocked_range< size_t > &  range)
IndexTreeT& primIndexTree ( )
inline
void runParallel ( )
void runSerial ( )
DistTreeT& sqrDistTree ( )
inline

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