pyvista.examples.downloads.download_can#

download_can(partial=False, load=True)[source]#

Download the can dataset mesh.

File obtained from Kitware. Used for testing hdf files.

Parameters:
partialbool, default: False

Load part of the dataset.

loadbool, default: True

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

Returns:
pyvista.PolyData, str, or List[str]

The example ParaView can DataSet or file path(s).

Examples

Plot the can dataset.

>>> from pyvista import examples
>>> import pyvista as pv
>>> dataset = examples.download_can()  
>>> dataset.plot(scalars='VEL', smooth_shading=True)