download_procedural_cow

download_procedural_cow#

download_procedural_cow(*, load: bool = True) PolyData | str[source]#

Download a procedurally generated cow.

A watertight surface of 300,000 triangles with its coat in the active 'RGB' point array. Loading requires the pyvista-zstd package (pip install pyvista[io]).

Added in version 0.50.

generate_cow.py

The script in the PyVista data repository that sums signed distance fields into this mesh. Run it with uv run --locked generate_cow.py.

Parameters:
loadbool, default: True

Load the dataset. When False, return the path to the file.

Returns:
pyvista.PolyData | str

Dataset or path to the file depending on the load parameter.

Examples#

Download Python source code | Download Jupyter notebook

>>> from pyvista import examples
>>> dataset = examples.download_procedural_cow()
>>> dataset.plot(rgb=True, smooth_shading=True)
../../../_images/pyvista-examples-downloads-download_procedural_cow-2b984b6a8de4780d_00_00.png

See Also#

Procedural Cow Dataset

See this dataset in the Dataset Gallery for more info.

Cow Dataset