pyvista.DataObject.copy_structure#
- DataObject.copy_structure(dataset: vtkDataSet) None [source]#
Copy the structure (geometry and topology) of the input dataset object.
- Parameters:
- dataset
vtk.vtkDataSet
Dataset to copy the geometry and topology from.
- dataset
Examples
>>> import pyvista as pv >>> source = pv.ImageData(dimensions=(10, 10, 5)) >>> target = pv.ImageData() >>> target.copy_structure(source) >>> target.plot(show_edges=True)