OpenSubdiv
|
Object used to compute and query ptex face indices. More...
#include <ptexIndices.h>
Public Member Functions | |
PtexIndices (TopologyRefiner const &refiner) | |
Constructor. | |
~PtexIndices () | |
Destructor. | |
int | GetNumFaces () const |
Returns the number of ptex faces in the mesh. | |
int | GetFaceId (Index f) const |
Returns the ptex face index given a coarse face 'f' or -1. | |
void | GetAdjacency (TopologyRefiner const &refiner, int face, int quadrant, int adjFaces[4], int adjEdges[4]) const |
Returns ptex face adjacency information for a given coarse face. | |
Object used to compute and query ptex face indices.
Given a refiner, constructing a PtexIndices object builds the mapping from coarse faces to ptex ids. Once built, the object can be used to query the mapping.
Definition at line 46 of file ptexIndices.h.
PtexIndices | ( | TopologyRefiner const & | refiner | ) |
Constructor.
~PtexIndices | ( | ) |
Destructor.
void GetAdjacency | ( | TopologyRefiner const & | refiner, |
int | face, | ||
int | quadrant, | ||
int | adjFaces[4], | ||
int | adjEdges[4] | ||
) | const |
Returns ptex face adjacency information for a given coarse face.
refiner | refiner used to build this PtexIndices object. |
face | coarse face index |
quadrant | quadrant index if 'face' is not a quad (the local ptex sub-face index). Must be less than the number of face vertices. |
adjFaces | ptex face indices of adjacent faces |
adjEdges | ptex edge indices of adjacent faces |
int GetFaceId | ( | Index | f | ) | const |
Returns the ptex face index given a coarse face 'f' or -1.
int GetNumFaces | ( | ) | const |
Returns the number of ptex faces in the mesh.
Ptex