RixSubdivisionMesh Class Reference

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

#include <RixSubdEval.h>

List of all members.

Public Member Functions

virtual RtToken GetMask ()=0
 Returns the type of subdivision used in the mesh.
virtual int GetNumFaces ()=0
 Returns the total number of faces on the mesh, including faces created through subdivision.
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
 Returns the face with the given ID on the mesh.
virtual RixSubdivisionVertexGetVertex (int id)=0
 Returns the vertex with the given ID on the mesh.
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
 Requests the number of vertices in each face in the mesh at the given depth, as well as the data indices of those vertices.
virtual bool GetPackedVertexValues (const RtToken name, int width, const RtToken space, std::vector< float > &data)=0
 Requests the current values of a primitive variable at all available vertices on the mesh.

Protected Member Functions

virtual ~RixSubdivisionMesh ()
 Virtual destructor.


Detailed Description

An object that encapsulates a subdivision mesh.


Constructor & Destructor Documentation

virtual RixSubdivisionMesh::~RixSubdivisionMesh  )  [inline, protected, virtual]
 

Virtual destructor.


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 RtToken RixSubdivisionMesh::GetMask  )  [pure virtual]
 

Returns the type of subdivision used in the mesh.

virtual int RixSubdivisionMesh::GetNumCoarseFaces  )  [pure virtual]
 

Returns the number of top level faces on the mesh.

virtual int RixSubdivisionMesh::GetNumFaces  )  [pure virtual]
 

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

virtual int RixSubdivisionMesh::GetNumVertices  )  [pure virtual]
 

Returns the number of vertices on the mesh.

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.

virtual void RixSubdivisionMesh::Subdivide int  depth  )  [pure virtual]
 

Subdivides the entire mesh to the indicated depth.


The documentation for this class was generated from the following file:
Generated on Mon Nov 15 10:14:34 2010 for PRManHeaders by  doxygen 1.4.6