pyvista.examples.downloads.download_can

Contents

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)  

See also

Can Dataset

See this dataset in the Dataset Gallery for more info.

Can Crushed Hdf Dataset

Can Crushed Vtu Dataset