pyvista.examples.downloads.download_can_crushed_hdf#

download_can_crushed_hdf(load=True)[source]#

Download the crushed can dataset.

File obtained from Kitware. Used for testing hdf files.

Originally built using VTK v9.2.0rc from:

VTK/build/ExternalTesting/can-vtu.hdf

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_hdf()
>>> dataset.plot(smooth_shading=True)
../../../_images/pyvista-examples-downloads-download_can_crushed_hdf-1_00_00.png