HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::MeshToVoxelEdgeData Class Reference

Extracts and stores voxel edge intersection data from a mesh. More...

#include <MeshToVolume.h>

Classes

struct  EdgeData
 Internal edge data type. More...
 
class  GenEdgeData
 

Public Types

using TreeType = tree::Tree4< EdgeData, 5, 4, 3 >::Type
 
using Accessor = tree::ValueAccessor< TreeType >
 

Public Member Functions

 MeshToVoxelEdgeData ()
 
void convert (const std::vector< Vec3s > &pointList, const std::vector< Vec4I > &polygonList)
 Threaded method to extract voxel edge data, the closest intersection point and corresponding primitive index, from the given mesh. More...
 
void getEdgeData (Accessor &acc, const Coord &ijk, std::vector< Vec3d > &points, std::vector< Index32 > &primitives)
 Returns intersection points with corresponding primitive indices for the given ijk voxel. More...
 
Accessor getAccessor ()
 

Detailed Description

Extracts and stores voxel edge intersection data from a mesh.

Definition at line 460 of file MeshToVolume.h.

Member Typedef Documentation

Constructor & Destructor Documentation

openvdb::OPENVDB_VERSION_NAME::tools::MeshToVoxelEdgeData::MeshToVoxelEdgeData ( )
inline

Definition at line 3985 of file MeshToVolume.h.

Member Function Documentation

void openvdb::OPENVDB_VERSION_NAME::tools::MeshToVoxelEdgeData::convert ( const std::vector< Vec3s > &  pointList,
const std::vector< Vec4I > &  polygonList 
)
inline

Threaded method to extract voxel edge data, the closest intersection point and corresponding primitive index, from the given mesh.

Parameters
pointListList of points in grid index space, preferably unique and shared by different polygons.
polygonListList of triangles and/or quads.

Definition at line 3992 of file MeshToVolume.h.

Accessor openvdb::OPENVDB_VERSION_NAME::tools::MeshToVoxelEdgeData::getAccessor ( )
inline
Returns
An accessor of MeshToVoxelEdgeData::Accessor type that provides random read access to the internal tree.

Definition at line 522 of file MeshToVolume.h.

void openvdb::OPENVDB_VERSION_NAME::tools::MeshToVoxelEdgeData::getEdgeData ( Accessor acc,
const Coord &  ijk,
std::vector< Vec3d > &  points,
std::vector< Index32 > &  primitives 
)
inline

Returns intersection points with corresponding primitive indices for the given ijk voxel.

Definition at line 4005 of file MeshToVolume.h.


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