OpenMaya.MItSurfaceCV Class Reference

Class Description

NURBS surface CV iterator.
+ Inheritance diagram for OpenMaya.MItSurfaceCV:

Public Member Functions

__init__ ()
 
currentItem ()
 
hasHistoryOnCreate ()
 
index ()
 
isDone ()
 
isRowDone ()
 
next ()
 
nextRow ()
 
position ()
 
reset ()
 
setPosition ()
 
translateBy ()
 
updateSurface ()
 
uvIndices ()
 

Constructor & Destructor Documentation

OpenMaya.MItSurfaceCV.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MItSurfaceCV.currentItem ( )
currentItem() -> MObject

Get the current CV in the iteration as a component.

Components are used to specify one or more CVs and are useful in operating on groups of non-contiguous CVs for a curve or surface.
Components do not contain any information about the surface that they refer to so an MDagPath must be specified when dealing with components.
OpenMaya.MItSurfaceCV.hasHistoryOnCreate ( )
hasHistoryOnCreate() -> bool

This method determines if the shape was created with history.

If the object that this iterator is attached to is not a shape then this method will raise.
OpenMaya.MItSurfaceCV.index ( )
index() -> int

Get the index of the current CV as it appears in CV array for this surface.
OpenMaya.MItSurfaceCV.isDone ( )
isDone() -> bool

Returns True if the iteration is finished, i.e. there are no more CVs to iterate on.
OpenMaya.MItSurfaceCV.isRowDone ( )
isRowDone() -> bool

Returns True if the current row has no more CVs to iterate over.
The row can be in the U or V direction depending on what value of useURows has been set in the constructor.
OpenMaya.MItSurfaceCV.next ( )
next() -> self

Advance to the next CV in the iteration.
If the iterator is already at the last CV then this method has no effect. Use isDone() to determine if the iterator is at the last CV.
OpenMaya.MItSurfaceCV.nextRow ( )
nextRow() -> self

Advance to the next row in the iteration.
The row can be in the U or V direction depending on what value of useURows has been set in the constructor.
OpenMaya.MItSurfaceCV.position ( )
position(space=kObject) -> MPoint

Returns the position of the current CV in the iteration in the specified space.

* space (int) - The coordinate space in which the CV is set
OpenMaya.MItSurfaceCV.reset ( )
reset() -> self
reset(surface, useURows=True) -> self
reset(surface, component, useURows=True) -> self

Reset the iterator to the first CV.

Or
Reset the iterator to iterate over all CVs on the specified surface.

* surface (MObject) - The surface for the iteration
* useURows (bool) - If True then the iterator will iterate in the U direction, otherwise it will be in the V direction.

Or
Reset the iterator to iterate over the CVs of the given surface that are specified in the given component. If the component is NULL then the iteration will be over all CVs on the surface.

* surface (MDagPath) - The surface for the iteration
* component (MObject) - A group of CVs to be iterated on
* useURows (bool) - If True then the iterator will iterate in the U direction, otherwise it will be in the V direction.
OpenMaya.MItSurfaceCV.setPosition ( )
setPosition(point, space=kObject) -> self

Set the position of the current CV in the iteration to the specified point.

* point (MPoint) - The new position for the current CV in the iteration
* space (int) - The coordinate space in which the CV is set
OpenMaya.MItSurfaceCV.translateBy ( )
translateBy(vector, space=kObject) -> self

Move the current CV in the iteration by the sepcified vector.

* vector (MVector) - The translation vector
* space (int) - The coordinate space in which the CV is set
OpenMaya.MItSurfaceCV.updateSurface ( )
updateSurface() -> self

This method is used to signal the surface that it has been changed and needs to redraw itself.

When modifying a large number of CVs, it is most efficient to call this method after all of the CVs have been modified.
OpenMaya.MItSurfaceCV.uvIndices ( )
uvIndices() -> (indexU, indexV)

Get the u and v index of the current CV.

The documentation for this class was generated from the following file:
  • D:/Maya-MD-Merge/input/python/2.0/OpenMaya.py