HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::QuadAndTriangleDataAdapter< PointType, PolygonType > Struct Template Reference

Contiguous quad and triangle data adapter class. More...

#include <MeshToVolume.h>

Public Member Functions

 QuadAndTriangleDataAdapter (const std::vector< PointType > &points, const std::vector< PolygonType > &polygons)
 
 QuadAndTriangleDataAdapter (const PointType *pointArray, size_t pointArraySize, const PolygonType *polygonArray, size_t polygonArraySize)
 
size_t polygonCount () const
 
size_t pointCount () const
 
size_t vertexCount (size_t n) const
 Vertex count for polygon n. More...
 
void getIndexSpacePoint (size_t n, size_t v, Vec3d &pos) const
 Returns position pos in local grid index space for polygon n and vertex v. More...
 

Detailed Description

template<typename PointType, typename PolygonType>
struct openvdb::OPENVDB_VERSION_NAME::tools::QuadAndTriangleDataAdapter< PointType, PolygonType >

Contiguous quad and triangle data adapter class.

PointType and PolygonType must provide element access through the square brackets operator.

Points are assumed to be in local grid index space.

The PolygonType tuple can have either three or four components this property must be specified in a static member variable named size, similar to the math::Tuple class.

A four component tuple can represent a quads or a triangle if the fourth component set to util::INVALID_INDEX

Definition at line 191 of file MeshToVolume.h.

Constructor & Destructor Documentation

template<typename PointType, typename PolygonType>
openvdb::OPENVDB_VERSION_NAME::tools::QuadAndTriangleDataAdapter< PointType, PolygonType >::QuadAndTriangleDataAdapter ( const std::vector< PointType > &  points,
const std::vector< PolygonType > &  polygons 
)
inline

Definition at line 193 of file MeshToVolume.h.

template<typename PointType, typename PolygonType>
openvdb::OPENVDB_VERSION_NAME::tools::QuadAndTriangleDataAdapter< PointType, PolygonType >::QuadAndTriangleDataAdapter ( const PointType *  pointArray,
size_t  pointArraySize,
const PolygonType *  polygonArray,
size_t  polygonArraySize 
)
inline

Definition at line 202 of file MeshToVolume.h.

Member Function Documentation

template<typename PointType, typename PolygonType>
void openvdb::OPENVDB_VERSION_NAME::tools::QuadAndTriangleDataAdapter< PointType, PolygonType >::getIndexSpacePoint ( size_t  n,
size_t  v,
Vec3d &  pos 
) const
inline

Returns position pos in local grid index space for polygon n and vertex v.

Definition at line 221 of file MeshToVolume.h.

template<typename PointType, typename PolygonType>
size_t openvdb::OPENVDB_VERSION_NAME::tools::QuadAndTriangleDataAdapter< PointType, PolygonType >::pointCount ( ) const
inline

Definition at line 212 of file MeshToVolume.h.

template<typename PointType, typename PolygonType>
size_t openvdb::OPENVDB_VERSION_NAME::tools::QuadAndTriangleDataAdapter< PointType, PolygonType >::polygonCount ( ) const
inline

Definition at line 211 of file MeshToVolume.h.

template<typename PointType, typename PolygonType>
size_t openvdb::OPENVDB_VERSION_NAME::tools::QuadAndTriangleDataAdapter< PointType, PolygonType >::vertexCount ( size_t  n) const
inline

Vertex count for polygon n.

Definition at line 215 of file MeshToVolume.h.


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