pyvista.MultiBlock class is a composite class to hold many
data sets which can be iterated over.
You can think of MultiBlock like lists or dictionaries as we can iterate over this data structure by index and we can also access blocks by their string name.
Create empty composite dataset
>>> import pyvista >>> blocks = pyvista.MultiBlock()
Add a dataset to the collection
Or add a named block
>>> blocks["cube"] = pyvista.Cube(center=(0, 0, -1))
Plotting the MultiBlock plots all the meshes contained by it.
Examples using this class:
MultiBlock API Reference#
A composite class to hold many data sets which can be iterated over.