pyvista.examples.planets.load_saturn_rings#

load_saturn_rings(inner=0.25, outer=0.5, c_res=6)[source]#

Load the planet Saturn’s rings.

Arguments are passed on to pyvista.Disc().

Parameters:
innerfloat, optional

The inner radius.

outerfloat, optional

The outer radius.

c_resint, optional

The number of points in the circumferential direction.

Returns:
pyvista.PolyData

Dataset with texture for Saturn’s rings.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> mesh = examples.planets.load_saturn_rings()
>>> texture = examples.planets.download_saturn_rings(texture=True)
>>> pl = pv.Plotter()
>>> image_path = examples.planets.download_stars_sky_background(
...     load=False
... )
>>> pl.add_background_image(image_path)
>>> _ = pl.add_mesh(mesh, texture=texture)
>>> pl.show()
../../../_images/pyvista-examples-planets-load_saturn_rings-1_00_00.png