pyvista.examples.planets.load_saturn_rings

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)
>>> image_path = examples.planets.download_stars_sky_background(load=False)
>>> mesh.plot(texture=texture, background=image_path)
../../../_images/pyvista-examples-planets-load_saturn_rings-1_00_00.png

See also

download_saturn_rings()

Download the texture of Saturn’s rings.

load_saturn()

Load the planet Saturn as a textured sphere.

download_saturn_surface()

Download the surface of Saturn.

3D Earth and Celestial Bodies

Example plot of the solar system.