acquireReferenceGeometry(shape, requirements) -> MGeometry
Acquire reference geometry with required buffers.
The user is responsible for releasing the geometry when it is no longer needed, by calling MGeometryUtilities::releaseReferenceGeometry().
* shape (int) - The shape of the requested geometry.
* requirements (MGeometryRequirements) - The list of required index and vertex buffers.
Valid geometry shapes:
kDefaultSphere Sphere with radius 1, centered at 0,0,0.
kDefaultPlane Plane with width and height of 1, centered at 0,0,0. Assuming Y-Up orientation: width = x-axis, and height = y-axis.
kDefaultCube Cube with width, height and depth of 1, centered at 0,0,0.
OpenMayaRender.MGeometryUtilities.displayStatus
(
)
static
displayStatus(path) -> DisplayStatus
Returns the display status of the given DAG path. Note that the last selected object will have status kLead
instead of kActive and if only one object is selected the status will be kLead.
* path (MDagPath) - The DAG path to get.
releaseReferenceGeometry(geometry) -> None
Release a generated reference geometry.
* geometry (MGeometry) - The geometry to delete.
OpenMayaRender.MGeometryUtilities.wireframeColor
(
)
static
wireframeColor(path) -> MColor
Returns the wireframe color used in Viewport 2.0 for the given DAG path.
* path (MDagPath) - The DAG path to get wireframe color.
The documentation for this class was generated from the following file: