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()
https://d33wubrfki0l68.cloudfront.net/f9d847b6fe266d8a463f088aa9a32c294876cf2d/44d29/_images/pyvista-examples-downloads-download_tetrahedron-1_00_00.png