MFnGeometryData

Base Class

MFnData

Constants

None

Static Methods

None

Constructors

Signature Parameters Description
MFnGeometryData()   Default constructor. Returns a new, empty MFnGeometryData object.
MFnGeometryData(obj) obj - MObject Returns a new MFnGeometryData function set, attached to the specified object.

Object Methods

Signature Parameters Returns Description
Name Type Description
addObjectGroup(id) id int group id Reference to self Adds an object group with the given id to the object.
addObjectGroupComponent(id, component) id int group id Reference to self Adds the members of the given component to the object group with the given id.
component MObject Component to be added to specified object group. The component should be an MObject created from any function set derived from MFnComponent (ie. MFnSingleIndexedComponent, MFnDoubleIndexedComponent, MFnTripleIndexedComponent)
changeObjectGroupId(sourceId, destId) sourceId int id to change Reference to self Changes the id of the object group with the given id to the new id.
destId int new id to set
copyObjectGroups(inGeom) inGeom MObject The geometry data to be copied Reference to self Copies the object groups from the given geometry data object.
hasObjectGroup(id) id int group id bool Returns True if an object group with the given id is contained in the data.
objectGroup(index) index int index in the group array int group id Returns the id of the index'th object group contained by the object.
objectGroupComponent(id) id int group id MObject Returns a component which contains the members of the object group with the given id.
objectGroupType(id) id int group id MFn Type constant. Returns the type of the component that the object group with the given id contains.
removeObjectGroup(id) id int group id Reference to self Removes an object group with the given id from the object.
removeObjectGroupComponent(id, component) id int group id Reference to self Removes the members of the given component from the object group with the given id.
component MObject Component specifying the members to be removed. The component should be an MObject created from any function set derived from MFnComponent (ie. MFnSingleIndexedComponent, MFnDoubleIndexedComponent, MFnTripleIndexedComponent)
setObjectGroupComponent(id, component) id int group id Reference to self Sets the members of the object group with the given id to be only those in the given component.
component MObject New component for specified object group. The component should be an MObject created from any function set derived from MFnComponent (ie. MFnSingleIndexedComponent, MFnDoubleIndexedComponent, MFnTripleIndexedComponent)

Object Attributes

Name Type Access Description
matrix MMatrix RW Used to convert the object into local space.
isIdentity bool R True if the matrix for the geometry is the identity.
isNotIdentity bool R True if the matrix for the geometry is not the identity.
objectGroupCount int R The number of object groups contained by the object.

Sequence Support

None.

Number Support

None

Comparison Support

None

str() Support

Default.

repr() Support

Default.

© 2011 Autodesk, Inc. All rights reserved.