load_planet_rings

load_planet_rings#

load_planet_rings(*, inner=0.25, outer=0.5, c_res=50)[source]#

Load planetary rings as a disc with texture coordinates.

Arguments are passed on to pyvista.Disc().

Added in version 0.49.

Parameters:
innerfloat, default: 0.25

The inner radius.

outerfloat, default: 0.5

The outer radius.

c_resint, default: 50

The number of cells in the circumferential direction.

Returns:
pyvista.PolyData

Dataset with texture coordinates for planetary rings.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> mesh = examples.planets.load_planet_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_planet_rings-0e07dbdbe5bcef33_00_00.png

See also

Planet Rings Dataset

See this dataset in the Dataset Gallery for more info.

download_saturn_rings()

Download the texture of Saturn’s rings.

load_planet()

Load a planet as a sphere with texture coordinates.

download_saturn_surface()

Download the surface of Saturn.

3D Earth and Celestial Bodies

Example plot of the solar system.