 Related help topics:
 Related help topics: #include <MGeometryPrimitive.h>
This method is obsolete.
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:
Internal Maya data which is passed to the user via this class is always assumed to be non-modifiable. If modified, stability cannot be ensured.
 Examples:
 Examples: | 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.  More... | |
| ~MGeometryPrimitive () | |
| Destructor.  More... | |
| int | uniqueID () const | 
| Return the per session unique identifier.  More... | |
| DrawPrimitiveType | drawPrimitiveType () const | 
| Get the data type for the data.  More... | |
| unsigned int | elementCount () const | 
| Return element count.  More... | |
| MGeometryData::ElementType | dataType () const | 
| Return element data type.  More... | |
| const void * | data () const | 
| Retrieve a pointer to the internal data.  More... | |
| Friends | |
| class | MGeometry | 
| class | MVaryingParameter | 
| class | MHardwareRenderer | 
| enum DrawPrimitiveType | 
Specifies the data primitive type constructed by the indexing array.
| MGeometryPrimitive | ( | const MGeometryPrimitive & | other | ) | 
Copy constructor.
| [in] | other | MGeometryPrimitive to copy. | 
The internal data pointer is copied and its reference count incremented.
| ~MGeometryPrimitive | ( | ) | 
Destructor.
Class destructor.
| int uniqueID | ( | ) | const | 
Return the per session unique identifier.
| MGeometryPrimitive::DrawPrimitiveType drawPrimitiveType | ( | ) | const | 
Get the data type for the data.
 Examples:
 Examples: | unsigned int elementCount | ( | ) | const | 
Return element count.
 Examples:
 Examples: | MGeometryData::ElementType dataType | ( | ) | const | 
Return element data type.
 Examples:
 Examples: | const void * data | ( | ) | const | 
Retrieve a pointer to the internal data.
 Examples:
 Examples: