RixSubdivisionMesh Class Reference

RixSubdivisionMesh Class Referenceabstract

An object that encapsulates a subdivision mesh. More...

#include <RixSubdEval.h>

Public Member Functions

virtual RtToken GetMask ()=0
 Returns the type of subdivision used in the mesh.
 
virtual int GetNumFaces ()=0
 
virtual int GetNumCoarseFaces ()=0
 Returns the number of top level faces on the mesh.
 
virtual int GetNumVertices ()=0
 Returns the number of vertices on the mesh.
 
virtual RixSubdivisionFaceGetFace (int id)=0
 
virtual RixSubdivisionVertexGetVertex (int id)=0
 
virtual void Subdivide (int depth)=0
 Subdivides the entire mesh to the indicated depth.
 
virtual void GetPackedVertexDataIndices (int depth, std::vector< int > &vertexcounts, std::vector< int > &vertices)=0
 
virtual bool GetPackedVertexValues (const RtToken name, int width, const RtToken space, std::vector< float > &data)=0
 

Protected Member Functions

virtual ~RixSubdivisionMesh ()
 Virtual destructor.
 

Detailed Description

An object that encapsulates a subdivision mesh.

Member Function Documentation

virtual RixSubdivisionFace* RixSubdivisionMesh::GetFace ( int  id)
pure virtual

Returns the face with the given ID on the mesh. Returns NULL if no face with that ID exists on the mesh.

virtual int RixSubdivisionMesh::GetNumFaces ( )
pure virtual

Returns the total number of faces on the mesh, including faces created through subdivision.

virtual void RixSubdivisionMesh::GetPackedVertexDataIndices ( int  depth,
std::vector< int > &  vertexcounts,
std::vector< int > &  vertices 
)
pure virtual

Requests the number of vertices in each face in the mesh at the given depth, as well as the data indices of those vertices. The data indices are returned in packed form.

virtual bool RixSubdivisionMesh::GetPackedVertexValues ( const RtToken  name,
int  width,
const RtToken  space,
std::vector< float > &  data 
)
pure virtual

Requests the current values of a primitive variable at all available vertices on the mesh. The variable cannot be a string type, and must be of detail varying, vertex, or facevarying. Returns true if the data exists with the given name and width (in floats), false otherwise. Point like data types will be transformed to the requested space.

virtual RixSubdivisionVertex* RixSubdivisionMesh::GetVertex ( int  id)
pure virtual

Returns the vertex with the given ID on the mesh. Returns NULL if no face with that ID exists on the mesh.


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