pyvista.examples.downloads.download_quadratic_pyramid

pyvista.examples.downloads.download_quadratic_pyramid#

download_quadratic_pyramid(load=True)[source]#

Download quadratic pyramid 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 pyramids.

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

See also

Quadratic Pyramid Dataset

See this dataset in the Dataset Gallery for more info.