download_gearbox

download_gearbox#

download_gearbox(
*,
load: bool = True,
) → MultiBlock[MultiBlock[MultiBlock[MultiBlock[MultiBlock[MultiBlock[MultiBlock[PolyData] | PolyData] | PolyData]]]]] | str[source]#

Download the gearbox example.

Parameters:
loadbool, default: True

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

Returns:
outputpyvista.MultiBlock | str

DataSet or filename depending on load.

Examples#

Download Python source code | Download Jupyter notebook

>>> import pyvista as pv
>>> from pyvista import examples
>>> gltf_file = examples.download_gearbox(load=False)
>>> pl = pv.Plotter()
>>> pl.import_gltf(gltf_file)
>>> pl.show()
../../../_images/pyvista-examples-downloads-download_gearbox-efeb49a68583182a_00_00.png

See Also#

Gearbox Dataset

See this dataset in the Dataset Gallery for more info.