Utilities for Viewport 2.0
def OpenMayaRender.MGeometryUtilities.acquireReferenceGeometry |
( |
| ) |
|
|
static |
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.