bgdev.tools.symmetry

Utility methods used to sort nodes and graphs.

created

20/11/2020

author

Benoit GIELLY <benoit.gielly@gmail.com>

class Symmetry[source]

Bases: object

Generates a symmetry table for selected mesh.

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

property center

Get center vertices.

get_side_vertices(side)[source]

Get all components of given side.

static get_vertex_id(vertex)[source]

Get vertex index from name.

get_vertex_name(index)[source]

Get vertex name from index.

property left

Get left side vertices.

mirror(vertices)[source]

Mirror vertices.

Parameters

vertices (list) – List of vertices to mirror.

Yields

str – The next vertex full name in the given list.

mirror_selection(add=False)[source]

Mirror selected vertices.

Parameters

add (bool) – Add to existing selection when True.

populate_table()[source]

Populate the symmetry table with vertices.

Notes

Maya topology symmetry must be already activated.

property right

Get right side vertices.

update()[source]

Generate a symmetry table.