#include <RixSubdEval.h>
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 RixSubdivisionFace * | GetFace (int id)=0 |
Returns the face with the given ID on the mesh. | |
virtual RixSubdivisionVertex * | GetVertex (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. |
|
Virtual destructor.
|
|
Returns the face with the given ID on the mesh. Returns NULL if no face with that ID exists on the mesh. |
|
Returns the type of subdivision used in the mesh.
|
|
Returns the number of top level faces on the mesh.
|
|
Returns the total number of faces on the mesh, including faces created through subdivision.
|
|
Returns the number of vertices on the mesh.
|
|
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. |
|
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. |
|
Returns the vertex with the given ID on the mesh. Returns NULL if no face with that ID exists on the mesh. |
|
Subdivides the entire mesh to the indicated depth.
|