download_bolt_nut#
- download_bolt_nut(load=True)[source]#
Download bolt nut dataset.
- Parameters:
- loadbool,
optional
Load the dataset after downloading it when
True
. Set this toFalse
and only the filename will be returned.
- loadbool,
- Returns:
pyvista.MultiBlock
ortuple
DataSet or tuple of filenames depending on
load
.
Examples
>>> import pyvista >>> from pyvista import examples >>> dataset = examples.download_bolt_nut() >>> pl = pyvista.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()
See Volume Rendering for an example using this dataset.