pyvista.MultiBlock.shallow_copy

pyvista.MultiBlock.shallow_copy#

MultiBlock.shallow_copy(
to_copy: vtkMultiBlockDataSet,
recursive=False,
) None[source]#

Shallow copy the given multiblock to this multiblock.

Parameters:
to_copypyvista.MultiBlock or vtk.vtkMultiBlockDataSet

Data object to perform a shallow copy from.

recursivebool, default: False

Also shallow-copy any nested MultiBlock blocks. By default, only the root MultiBlock is shallow-copied and any nested multi-blocks are not shallow-copied.