HDK
|
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... | |
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 186 of file MeshToVolume.h.
|
inline |
Definition at line 188 of file MeshToVolume.h.
|
inline |
Definition at line 197 of file MeshToVolume.h.
|
inline |
Returns position pos in local grid index space for polygon n and vertex v.
Definition at line 216 of file MeshToVolume.h.
|
inline |
Definition at line 207 of file MeshToVolume.h.
|
inline |
Definition at line 206 of file MeshToVolume.h.
|
inline |
Vertex count for polygon n.
Definition at line 210 of file MeshToVolume.h.