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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OpenSubdiv::v3_4_3::Far::PtexIndices Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

OpenSubdiv::v3_4_3::Far::PtexIndices::PtexIndices ( TopologyRefiner const &  refiner)

Constructor.

OpenSubdiv::v3_4_3::Far::PtexIndices::~PtexIndices ( )

Destructor.

Member Function Documentation

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.

Parameters
refinerrefiner used to build this PtexIndices object.
facecoarse face index
quadrantquadrant index if 'face' is not a quad (the local ptex sub-face index). Must be less than the number of face vertices.
adjFacesptex face indices of adjacent faces
adjEdgesptex 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


The documentation for this class was generated from the following files: