pyvista.examples.downloads.download_can_crushed_vtu

pyvista.examples.downloads.download_can_crushed_vtu#

download_can_crushed_vtu(load=True)[source]#

Download the crushed can dataset.

File obtained from Kitware. Used for testing vtu files.

Originally from VTKDataFiles-9.3.0.tar.gz.

Parameters:
loadbool, default: True

Load the dataset after downloading it when True. Set this to False and only the filename will be returned.

Returns:
pyvista.UnstructuredGrid | str

Crushed can dataset or path depending on the value of load.

Examples

Plot the crushed can dataset.

>>> from pyvista import examples
>>> import pyvista as pv
>>> dataset = examples.download_can_crushed_vtu()
>>> dataset.plot(smooth_shading=True)
../../../_images/pyvista-examples-downloads-download_can_crushed_vtu-1_00_00.png

See also

Can Crushed Vtu Dataset

See this dataset in the Dataset Gallery for more info.

Can Crushed Hdf Dataset

Can Dataset