bgdev.api.mesh

API methods for meshes.

author

Benoit Gielly (benoit.gielly@gmail.com)

calculate_delta(base, shape, minus)[source]

Find new point position by calculating deltas.

Parameters
  • base (str) – Name of the base/reference mesh. (Usually shapeOrig)

  • shape (str) – Name of shape whose points will be added onto the base.

  • minus (str) – Name of shape whose points will be subbed from the base.

Returns

The new MPointArray after delta are applied.

Return type

OpenMaya.MPointArray

duplicate_mesh(geometry, name='temp')[source]

Duplicate given geometry using Maya API.

get_point_array(mesh)[source]

Get all vertices position of given mesh.