OpenVDB
9.0.1
|
Contiguous quad and triangle data adapter class. More...
#include <openvdb/tools/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
|
inline |
|
inline |
|
inline |
Returns position pos in local grid index space for polygon n and vertex v.
|
inline |
|
inline |
|
inline |
Vertex count for polygon n.