pyvista.DataObject.copy_structure#

DataObject.copy_structure(dataset: vtkDataSet)[source]#

Copy the structure (geometry and topology) of the input dataset object.

Parameters:
datasetvtk.vtkDataSet

Dataset to copy the geometry and topology from.

Examples

>>> import pyvista as pv
>>> source = pv.ImageData(dimensions=(10, 10, 5))
>>> target = pv.ImageData()
>>> target.copy_structure(source)
>>> target.plot(show_edges=True)
https://d33wubrfki0l68.cloudfront.net/6070dfaa95c602a6fe7f0758cde2b192dd5272f9/0f23e/_images/pyvista-dataobject-copy_structure-1_00_00.png