- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# MGeometryIndexMapping Class Reference
OpenMayaRender - API module for rendering

This reference page is linked to from the following overview topics: Extension for Autodesk Maya 2013.

Search for all occurrences

## Detailed Description

A mapping of geometry index.

This class represents the index mapping of the multiple objects concatenated into a single render item.

When multiple objects are compatible, their geometry can be consolidated into a single render item, to provide better performance by concatening their index and vertex buffers.

The Geometry Index Mapping can be used to get the indexing details of the concatenated geometries to be able to render them separately.

`#include <MHWGeometry.h>`

List of all members.

## Public Member Functions
| MGeometryIndexMapping ()
| Constructor.
| ~MGeometryIndexMapping ()
| Destructor.
int | geometryCount () const
| Get the number of geometry described by the mapping.
MDagPath | dagPath (int geometryIdx) const
| Get the MDagPath of a geometry.
MObject | component (int geometryIdx) const
| Get the component of a geometry.
int | indexStart (int geometryIdx) const
| Get the index start of a geometry.
int | indexLength (int geometryIdx) const
| Get the index length of a geometry.

## Member Function Documentation

int geometryCount | ( |  | ) | const

Search for all occurrences

Get the number of geometry described by the mapping.

Returns:
  The number of geometry

MDagPath dagPath | ( | int | geometryIdx | ) | const

Search for all occurrences

Get the MDagPath of a geometry.

Parameters:

  [in] | geometryIdx | The index the geometry

Returns:
  The path to the instance of the object's geometry

MObject component | ( | int | geometryIdx | ) | const

Search for all occurrences

Get the component of a geometry.

Parameters:

  [in] | geometryIdx | The index the geometry

Returns:
  The component of the geometry. This will be null if there is no component

int indexStart | ( | int | geometryIdx | ) | const

Search for all occurrences

Get the index start of a geometry.

The index start represents the offset of the geometry index data in the index buffer of the consolidated render item

Parameters:

  [in] | geometryIdx | The index the geometry

Returns:
  The index start of the geometry

int indexLength | ( | int | geometryIdx | ) | const

Search for all occurrences

Get the index length of a geometry.

The index length represents the length of the geometry index data in the index buffer of the consolidated render item

Parameters:

  [in] | geometryIdx | The index the geometry

Returns:
  The index length of the geometry

MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping
MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping MGeometryIndexMapping