class MGeometry

Jump to documentation

Geometric data cache. (OpenMayaRender) (OpenMayaRender.py)

public members:

~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 )

Documentation

This class holds the set of data elements which represent a Maya surface
Description

MGeometry stores the collection of MGeometryData arrays which describe a Maya surface, including per-component data such as UV mapping and colour.

Functions

MGeometry:: ~MGeometry ()

Description

Class destructor.

MGeometry:: MGeometry ( const MGeometry & geom)

Description

Copy constructor.

MGeometry & MGeometry:: operator = (const MGeometry &rhs)

Description

Copy constructor

Arguments

  • MGeometry to copy

Return Value

  • MGeometry copied into

const MGeometryData MGeometry:: position ()

Description

Get the position data for this surface.

Arguments

  • None

Return Value

  • the position data (which may be empty)

const MGeometryData MGeometry:: normal ()

Description

Get the normal data for this surface.

Arguments

  • None

Return Value

  • the normal data (which may be empty)

unsigned int MGeometry:: primitiveArrayCount () const

Description

Get the number of primitive data for this surface.

Arguments

  • None

Return Value

  • count is returned

const MGeometryPrimitive MGeometry:: primitiveArray (unsigned int arrayNumber) const

Description

Get the primitive data for this surface. The primitive describes how the data arrays should be used when rendering.

Arguments

  • None

Return Value

  • primitive data structure which may be empty.

const MGeometryData MGeometry:: componentId ()

Description

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).

Arguments

  • None

Return Value

  • the component id data (which may be empty)

const MGeometryData MGeometry:: texCoord ( const MString & name)

Description

Get a texture coordinate set by name.

Arguments

  • name the name of the set to return

Return Value

  • the texture coordinate data (which may be empty)

const MGeometryData MGeometry:: color ( const MString & name)

Description

Get a color set by name.

Arguments

  • name the name of the set to return

Return Value

  • the color data (which may be empty)

const MGeometryData MGeometry:: tangent ( const MString & name)

Description

Get a tangent set by name.

Arguments

  • name the name of the uv set tangent data should be returned for

Return Value

  • the tangent data (which may be empty)

const MGeometryData MGeometry:: binormal ( const MString & name)

Description

Get a binormal set by name.

Arguments

  • name the name of the uv set binormal data should be returned for

Return Value

  • the binormal data (which may be empty)

const MGeometryData MGeometry:: data ( MGeometryData::DataType what, const MString & name)

Description

Get arbitrary surface data by name.

Arguments

  • what the type of data requested
  • name the name of the data set requested

Return Value

  • the geometry data (which may be empty)

This class has no child classes.


Autodesk® Maya® 2008 © 1997-2007 Autodesk, Inc. All rights reserved. doc++ Copyright