HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::mesh_to_volume_internal::VoxelizationData< TreeType > Struct Template Reference

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

#include <MeshToVolume.h>

Public Types

using Ptr = std::unique_ptr< VoxelizationData >
 
using ValueType = typename TreeType::ValueType
 
using Int32TreeType = typename TreeType::template ValueConverter< Int32 >::Type
 
using UCharTreeType = typename TreeType::template ValueConverter< unsigned char >::Type
 
using FloatTreeAcc = tree::ValueAccessor< TreeType >
 
using Int32TreeAcc = tree::ValueAccessor< Int32TreeType >
 
using UCharTreeAcc = tree::ValueAccessor< UCharTreeType >
 

Public Member Functions

 VoxelizationData ()
 
unsigned char getNewPrimId ()
 

Public Attributes

TreeType distTree
 
FloatTreeAcc distAcc
 
Int32TreeType indexTree
 
Int32TreeAcc indexAcc
 
UCharTreeType primIdTree
 
UCharTreeAcc primIdAcc
 

Detailed Description

template<typename TreeType>
struct openvdb::OPENVDB_VERSION_NAME::tools::mesh_to_volume_internal::VoxelizationData< TreeType >

TBB body object to voxelize a mesh of triangles and/or quads into a collection of VDB grids, namely a squared distance grid, a closest primitive grid and an intersecting voxels grid (masks the mesh intersecting voxels)

Note
Only the leaf nodes that intersect the mesh are allocated, and only voxels in a narrow band (of two to three voxels in proximity to the mesh's surface) are activated. They are populated with distance values and primitive indices.

Definition at line 1924 of file MeshToVolume.h.

Member Typedef Documentation

Definition at line 1932 of file MeshToVolume.h.

template<typename TreeType >
using openvdb::OPENVDB_VERSION_NAME::tools::mesh_to_volume_internal::VoxelizationData< TreeType >::Int32TreeType = typename TreeType::template ValueConverter<Int32>::Type

Definition at line 1929 of file MeshToVolume.h.

template<typename TreeType >
using openvdb::OPENVDB_VERSION_NAME::tools::mesh_to_volume_internal::VoxelizationData< TreeType >::Ptr = std::unique_ptr<VoxelizationData>

Definition at line 1926 of file MeshToVolume.h.

template<typename TreeType >
using openvdb::OPENVDB_VERSION_NAME::tools::mesh_to_volume_internal::VoxelizationData< TreeType >::UCharTreeType = typename TreeType::template ValueConverter<unsigned char>::Type

Definition at line 1930 of file MeshToVolume.h.

template<typename TreeType >
using openvdb::OPENVDB_VERSION_NAME::tools::mesh_to_volume_internal::VoxelizationData< TreeType >::ValueType = typename TreeType::ValueType

Definition at line 1927 of file MeshToVolume.h.

Constructor & Destructor Documentation

Definition at line 1937 of file MeshToVolume.h.

Member Function Documentation

template<typename TreeType >
unsigned char openvdb::OPENVDB_VERSION_NAME::tools::mesh_to_volume_internal::VoxelizationData< TreeType >::getNewPrimId ( )
inline

Definition at line 1957 of file MeshToVolume.h.

Member Data Documentation

Definition at line 1949 of file MeshToVolume.h.

template<typename TreeType >
TreeType openvdb::OPENVDB_VERSION_NAME::tools::mesh_to_volume_internal::VoxelizationData< TreeType >::distTree

Definition at line 1948 of file MeshToVolume.h.

Definition at line 1952 of file MeshToVolume.h.

Definition at line 1951 of file MeshToVolume.h.

Definition at line 1955 of file MeshToVolume.h.

Definition at line 1954 of file MeshToVolume.h.


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