pyvista.MultiBlock.reverse#

MultiBlock.reverse()[ソース]#

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']