pyvista.MultiBlock.as_polydata_blocks#
- MultiBlock.as_polydata_blocks(copy: bool = False) MultiBlock [source]#
Convert all the datasets within this MultiBlock to
PolyData
.- Parameters:
- Returns:
pyvista.MultiBlock
MultiBlock containing only
pyvista.PolyData
datasets.
See also
as_unstructured_grid_blocks
Convert all blocks to
UnstructuredGrid
.is_all_polydata
Check if all blocks are
PolyData
.extract_geometry()
Convert this
MultiBlock
toPolyData
.
Notes
Null blocks are converted to empty
pyvista.PolyData
objects. Downstream filters that operate on PolyData cannot accept MultiBlocks with null blocks.