pyvista.MultiBlock.reverse

pyvista.MultiBlock.reverse#

MultiBlock.reverse() None[source]#

Reverse MultiBlock in-place.

Examples

Reverse a multiblock.

>>> import pyvista as pv
>>> data = {
...     'cube': pv.Cube(),
...     'sphere': pv.Sphere(center=(2, 2, 0)),
... }
>>> blocks = pv.MultiBlock(data)
>>> blocks.keys()
['cube', 'sphere']
>>> blocks.reverse()
>>> blocks.keys()
['sphere', 'cube']