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, optional

Load part of the dataset. Defaults to False.

loadbool, optional

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
>>> dataset = examples.download_can()  
>>> dataset.plot(scalars='VEL', smooth_shading=True)