# Examples from pyvista.Sphere
# ============================

# Create a sphere using default parameters.
import pyvista as pv
sphere = pv.Sphere()
sphere.plot(show_edges=True)

# Create a quarter sphere by setting `end_theta`.
sphere = pv.Sphere(end_theta=90)
out = sphere.plot(show_edges=True)

# Create a hemisphere by setting `end_phi`.
sphere = pv.Sphere(end_phi=90)
out = sphere.plot(show_edges=True)

# Tessellate along `phi` and `theta` directions.
# The sphere is mostly quads with triangles at the poles.
sphere = pv.Sphere(tessellation='phi_theta')
sorted(sphere.distinct_cell_types)

out = sphere.plot(show_edges=True)

# Include texture coordinates.
sphere = pv.Sphere(tessellation='phi_theta', texture_coordinates=True)
sphere.active_texture_coordinates[0]

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

