This method is obsolete.
More...
#include <MGeometry.h>
|
class | MGeometryManager |
|
class | MGeometryList |
|
class | MVaryingParameter |
|
This method is obsolete.
- Deprecated:
- Use MHWRender::MGeometry and MHWRender::MGeometryExtractor instead.
MGeometryLegacy stores the collection of MGeometryData arrays which describe a Maya surface, including per-component data such as UV mapping and colour.
Various methods are provided for returning MGeometryData containing the data for different properties of the geometry: the position() method returns position data, the normal() method returns normals, and so on.
The primitiveArray() method returns MGeometryPrimitive's which provide indexing into those property arrays for each primitive to be drawn.
- Examples:
- dx11Shader/dx11Shader.cpp, glslShader/GLSLShader.cpp, and hlslShader/hlslShader.cpp.
Copy constructor.
- Parameters
-
unsigned int primitiveArrayCount |
( |
| ) |
const |
Get the primitive indexing data for this surface.
The surface geometry may consist of more than one MGeometryPrimitive, each representing an array of primitives. For example, if the surface was composed of both triangles and quads there might be one MGeometryPrimitive for the triangles and a second for the quads. The arrayNumber parameter is used to select between these.
Each MGeometryPrimitive contains indices which are used to map the MGeometryData returned by the other methods of this class onto the primitives. For example, if the returned MGeometryPrimitive is for an array of triangles it will contain three indices for each triangle. Those indices can be used to index into the position data returned by the position() method, the normal data returned by the normal() method, and so on.
- Parameters
-
[in] | arrayNumber | Number of the index data to retrieve. Must be in the range 0 to primitiveArrayCount() - 1. |
- Returns
- Primitive data structure, which may be empty.
- Examples:
- dx11Shader/dx11Shader.cpp, glslShader/GLSLShader.cpp, and hlslShader/hlslShader.cpp.
Get the Maya component id data for this surface.
This array allows you to correlate MGeometryLegacy 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).
The documentation for this class was generated from the following files:
- MGeometry.h
- MGeometry.cpp