pyvista.MultiBlock.is_homogeneous

pyvista.MultiBlock.is_homogeneous#

property MultiBlock.is_homogeneous: bool[source]#

Return True if all nested blocks have the same type.

Added in version 0.45.

Examples

Load a dataset with nested multi-blocks. Here we load download_biplane().

>>> from pyvista import examples
>>> multi = examples.download_biplane()

Show the nested_block_types.

>>> multi.nested_block_types
{<class 'pyvista.core.pointset.UnstructuredGrid'>}

Since there is only one type, the dataset is homogeneous.

>>> multi.is_homogeneous
True