3DCoat
3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
|
Object used to compute and query ptex face indices. More...
#include <ptexIndices.h>
Public Member Functions | |
PtexIndices (TopologyRefiner const &refiner) | |
Constructor. More... | |
~PtexIndices () | |
Destructor. More... | |
int | GetNumFaces () const |
Ptex. More... | |
int | GetFaceId (Index f) const |
Returns the ptex face index given a coarse face 'f' or -1. More... | |
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. More... | |
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.
OpenSubdiv::v3_4_3::Far::PtexIndices::PtexIndices | ( | TopologyRefiner const & | refiner | ) |
Constructor.
OpenSubdiv::v3_4_3::Far::PtexIndices::~PtexIndices | ( | ) |
Destructor.
void OpenSubdiv::v3_4_3::Far::PtexIndices::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 |
References OpenSubdiv::v3_4_3::Far::TopologyRefiner::GetSchemeType().
int OpenSubdiv::v3_4_3::Far::PtexIndices::GetFaceId | ( | Index | f | ) | const |
Returns the ptex face index given a coarse face 'f' or -1.
int OpenSubdiv::v3_4_3::Far::PtexIndices::GetNumFaces | ( | ) | const |
Ptex.
Returns the number of ptex faces in the mesh