MultiBlock.get_block_name#
- MultiBlock.get_block_name(index: int) str[source]#
Return the string name of the block at the given index.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> data = {
... 'cube': pv.Cube(),
... 'sphere': pv.Sphere(center=(2, 2, 0)),
... }
>>> blocks = pv.MultiBlock(data)
>>> blocks.get_block_name(0)
'cube'