RixSubdivisionVertex Class Reference

RixSubdivisionVertex Class Referenceabstract

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

#include <RixSubdEval.h>

Public Member Functions

virtual int GetID ()=0
 
virtual int GetDataIndex ()=0
 
virtual bool GetValue (const RtToken name, int width, float *data)=0
 
virtual bool GetValue (const RtToken name, int width, const RtToken space, float *data)=0
 

Detailed Description

An object that encapsulates a vertex on a subdivision mesh.

Member Function Documentation

virtual int RixSubdivisionVertex::GetDataIndex ( )
pure virtual

Returns the data index of this vertex. Unlike the ID, the data index is not guaranteed to be unique. The data index may be used to index into values returned by RixSubdivisionMesh::GetPackedVertexValues.

virtual int RixSubdivisionVertex::GetID ( )
pure virtual

Returns the unique ID of this vertex. The ID is guaranteed to be unique amongst all other vertices present on the mesh.

virtual bool RixSubdivisionVertex::GetValue ( const RtToken  name,
int  width,
float *  data 
)
pure virtual

Requests the current value of a primitive variable attached to this vertex. The variable cannot be a string, uniform, or facevarying detail; it can only be constant, varying, or vertex. (For uniform and facevarying variables, you must use RixSubdivisionFace methods.) Returns true if the data exists with the given name and width (in floats) and is of allowable type, false otherwise. Point-like data types will be returned in camera space.

virtual bool RixSubdivisionVertex::GetValue ( const RtToken  name,
int  width,
const RtToken  space,
float *  data 
)
pure virtual

Requests the current value of a primitive variable attached to this vertex. The variable cannot be a string, uniform, or facevarying detail; it can only be constant, varying, or vertex. (For uniform and facevarying variables, you must use RixSubdivisionFace methods.) Returns true if the data exists with the given name and width (in floats) and is of allowable type, false otherwise. Point-like data types will be transformed to the requested space.


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