pyvista.examples.downloads.download_particles#
- download_particles(load=True)[source]#
Download a particle dataset.
Added in version 0.44.0.
- Parameters:
- Returns:
pyvista.PolyData
|str
DataSet or filename depending on
load
.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> filename = examples.download_particles(load=False) >>> reader = pv.get_reader(filename) >>> reader.reader.SetDataByteOrderToBigEndian() >>> reader.reader.Update() >>> mesh = reader.read() >>> mesh.plot()
See also
- Particles Dataset
See this dataset in the Dataset Gallery for more info.