#include
<MGeometry.h>
List of all
members.
Detailed Description
Geometric data cache.
MGeometry stores the collection of
MGeometryData arrays which describe
a Maya surface, including per-component data such as UV mapping and
colour.
Constructor & Destructor Documentation
MGeometry::~MGeometry |
( |
|
) |
|
MGeometry::MGeometry |
( |
const MGeometry & |
geom |
) |
|
Member Function Documentation
Copy constructor
- Parameters:
-
- Returns:
- MGeometry copied into.
unsigned int
MGeometry::primitiveArrayCount |
( |
|
) |
const |
Get the number of primitive data for this surface.
- Returns:
- Count is returned.
Get the primitive data for this surface. The primitive describes
how the data arrays should be used when rendering.
- Returns:
- Primitive data structure which may be empty.
Get the position data for this surface.
- Returns:
- The position data (which may be empty).
Get the normal data for this surface.
- Returns:
- The normal data (which may be empty).
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).
- Returns:
- The component id data (which may be empty).
Get a texture coordinate set by name.
- Parameters:
-
[in] |
name |
the name of the set to return |
- Returns:
- The texture coordinate data (which may be empty).
Get a color set by name.
- Parameters:
-
[in] |
name |
the name of the set to return |
- Returns:
- The color data (which may be empty).
Get a tangent set by name.
- Parameters:
-
[in] |
name |
the name of the uv set tangent data should be returned for |
- Returns:
- The tangent data (which may be empty).
Get a binormal set by name.
- Parameters:
-
[in] |
name |
the name of the uv set binormal data should be returned
for |
- Returns:
- The binormal data (which may be empty).
Get arbitrary surface data by name.
- Parameters:
-
[in] |
what |
the type of data requested |
[in] |
name |
the name of the data set requested |
- Returns:
- The geometry data (which may be empty).