pyvista.examples.downloads.download_bolt_nut#

download_bolt_nut(load=True)[source]#

Download bolt nut dataset.

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.MultiBlock or tuple

DataSet or tuple of filenames depending on load.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> dataset = examples.download_bolt_nut()
>>> pl = pv.Plotter()
>>> _ = pl.add_volume(
...     dataset,
...     cmap="coolwarm",
...     opacity="sigmoid_5",
...     show_scalar_bar=False,
... )
>>> pl.camera_position = [
...     (194.6, -141.8, 182.0),
...     (34.5, 61.0, 32.5),
...     (-0.229, 0.45, 0.86),
... ]
>>> pl.show()
../../../_images/pyvista-examples-downloads-download_bolt_nut-1_00_00.png

See also

Bolt Nut Dataset

See this dataset in the Dataset Gallery for more info.

Volume Rendering

Example which uses this dataset.