#include
<MGeometryPrimitive.h>
MGeometryPrimitive is a class describes the topology used for accessing MGeometryData.
Topology is specified as a set of index values which references into data elements in an MGeometryData. Index values can be assumed to be stored in contiguous memory.
A "draw primitive type" indicates the format of the indexing as follows:
Public Types |
|
| enum | DrawPrimitiveType
{ kInvalidIndexType = 0, kPoints, kLines, kLineStrip, kLineLoop, kTriangles, kTriangleStrip, kTriangleFan, kQuads, kQuadStrip, kPolygon, kMaxDrawPrimitiveTypeIndex } |
| Specifies the data primitive type
constructed by the indexing array. More... |
|
Public Member Functions |
|
| MGeometryPrimitive (const MGeometryPrimitive &other) | |
| Copy constructor. |
|
| ~MGeometryPrimitive () | |
| Destructor. |
|
| int | uniqueID () const |
| DrawPrimitiveType | drawPrimitiveType () const |
| unsigned int | elementCount () const |
| MGeometryData::ElementType | dataType () const |
| const void * | data () const |
Friends |
|
| class | MGeometry |
| class | MVaryingParameter |
| class | MHardwareRenderer |
Specifies the data primitive type constructed by the indexing array.
| MGeometryPrimitive::MGeometryPrimitive | ( | const MGeometryPrimitive & | other | ) |
Copy constructor.
Copy constructor.
The internal data pointer is copied and its reference count incremented.
| MGeometryPrimitive::~MGeometryPrimitive | ( | ) |
Destructor.
Class destructor.
| int MGeometryPrimitive::uniqueID | ( | ) | const |
Return the per session unique identifier
| MGeometryPrimitive::DrawPrimitiveType MGeometryPrimitive::drawPrimitiveType | ( | ) | const |
Get the data type for the data.
| unsigned int MGeometryPrimitive::elementCount | ( | ) | const |
Return element count.
| MGeometryData::ElementType MGeometryPrimitive::dataType | ( | ) | const |
Return element data type.
| const void * MGeometryPrimitive::data | ( | ) | const |
Retrieve a pointer to the internal data
| Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. | Generated with |