pyvista.examples.downloads.download_cad_model_case#

download_cad_model_case(load=True)[source]#

Download a CAD model of a Raspberry PI 4 case.

The dataset was downloaded from Thingiverse

Original datasets are under the Creative Commons - Attribution license.

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.PolyData | str

DataSet or filename depending on load.

Examples

Download and plot the dataset.

>>> from pyvista import examples
>>> mesh = examples.download_cad_model_case()
>>> mesh.plot()
../../../_images/pyvista-examples-downloads-download_cad_model_case-1_00_00.png

Return the statistics of the dataset.

>>> mesh
PolyData (...)
  N Cells:    15446
  N Points:   7677
  N Strips:   0
  X Bounds:   -6.460e-31, 9.000e+01
  Y Bounds:   -3.535e-32, 1.480e+02
  Z Bounds:   0.000e+00, 2.000e+01
  N Arrays:   2

See also

Cad Model Case Dataset

See this dataset in the Dataset Gallery for more info.