#include <MGeometry.h>
MGeometry stores the collection of MGeometryData arrays which describe a Maya surface, including per-component data such as UV mapping and colour.
Public Member Functions | |
~MGeometry () | |
MGeometry (const MGeometry &geom) | |
MGeometry & | operator= (const MGeometry &rhs) |
unsigned int | primitiveArrayCount () const |
const MGeometryPrimitive | primitiveArray (unsigned int arrayNumber) const |
const MGeometryData | position () |
const MGeometryData | normal () |
const MGeometryData | componentId () |
const MGeometryData | texCoord (const MString &name) |
const MGeometryData | color (const MString &name) |
const MGeometryData | tangent (const MString &name) |
const MGeometryData | binormal (const MString &name) |
const MGeometryData | data (MGeometryData::DataType what, const MString &name) |
Friends | |
class | MGeometryManager |
class | MGeometryList |
class | MVaryingParameter |
MGeometry::~MGeometry | ( | ) |
Class destructor.
MGeometry::MGeometry | ( | const MGeometry & | geom | ) |
Copy constructor.
unsigned int MGeometry::primitiveArrayCount | ( | ) | const |
Get the number of primitive data for this surface.
const MGeometryPrimitive MGeometry::primitiveArray | ( | unsigned int | arrayNumber | ) | const |
Get the primitive data for this surface. The primitive describes how the data arrays should be used when rendering.
const MGeometryData MGeometry::position | ( | ) |
Get the position data for this surface.
const MGeometryData MGeometry::normal | ( | ) |
Get the normal data for this surface.
const MGeometryData MGeometry::componentId | ( | ) |
Get the Maya component id data for this surface. This array allows you to correlate MGeometry entries with the corresponding component on the Maya surface (e.g. for meshes, this array will contains the vertex id).
const MGeometryData MGeometry::texCoord | ( | const MString & | name | ) |
Get a texture coordinate set by name.
[in] | name | the name of the set to return |
const MGeometryData MGeometry::color | ( | const MString & | name | ) |
Get a color set by name.
[in] | name | the name of the set to return |
const MGeometryData MGeometry::tangent | ( | const MString & | name | ) |
Get a tangent set by name.
[in] | name | the name of the uv set tangent data should be returned for |
const MGeometryData MGeometry::binormal | ( | const MString & | name | ) |
Get a binormal set by name.
[in] | name | the name of the uv set binormal data should be returned for |
const MGeometryData MGeometry::data | ( | MGeometryData::DataType | what, | |
const MString & | name | |||
) |
Get arbitrary surface data by name.
[in] | what | the type of data requested |
[in] | name | the name of the data set requested |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |