pyvista.MultiBlock.as_polydata_blocks#
- MultiBlock.as_polydata_blocks(copy=False)[source]#
Convert all the datasets within this MultiBlock to
pyvista.PolyData
.- Parameters:
- copybool, default:
False
Option to create a shallow copy of any datasets that are already a
pyvista.PolyData
. WhenFalse
, any datasets that are already PolyData will not be copied.
- copybool, default:
- Returns:
pyvista.MultiBlock
MultiBlock containing only
pyvista.PolyData
datasets.
Notes
Null blocks are converted to empty
pyvista.PolyData
objects. Downstream filters that operate on PolyData cannot accept MultiBlocks with null blocks.