download_teapot

download_teapot#

download_teapot(load=True)[source]#

Download teapot dataset.

The Utah Teapot, originally modeled by Martin Newell at the University of Utah in 1975. The specific mesh distributed here was tessellated by Martin Isenburg (UNC Chapel Hill) for Isenburg and Snoeyink, “Face Fixer: Compressing Polygon Meshes with Properties” (SIGGRAPH 2000).

No formal license has ever been issued for the original Newell dataset. The model has been freely distributed in computer graphics software for 50 years and is conventionally treated as public domain.

Parameters:
loadbool, default: True

Load the dataset after downloading it when True. Set this to False and only the filename will be returned.

Returns:
outputpyvista.PolyData | str

DataSet or filename depending on load.

Examples

>>> from pyvista import examples
>>> dataset = examples.download_teapot()
>>> dataset.plot(cpos='xy')
../../../_images/pyvista-examples-downloads-download_teapot-85ecb3ab178e1706_00_00.png

See also

Teapot Dataset

See this dataset in the Dataset Gallery for more info.

This dataset is used in the following examples: