pyvista.examples.downloads.download_tetrahedron#

download_tetrahedron(load=True)[source]#

Download tetrahedron 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.UnstructuredGrid | str

DataSet or filename depending on load.

Examples

Shrink and plot the dataset to show it is composed of several tetrahedrons.

>>> from pyvista import examples
>>> dataset = examples.download_tetrahedron()
>>> dataset.shrink(0.85).plot()
../../../_images/pyvista-examples-downloads-download_tetrahedron-1_00_00.png

See also

Tetrahedron Dataset

See this dataset in the Dataset Gallery for more info.