# Examples from pyvista.ParametricSuperEllipsoid
# ==============================================

# Create a ParametricSuperEllipsoid surface that looks like a box
# with smooth edges.
import pyvista as pv
mesh = pv.ParametricSuperEllipsoid(n1=0.02, n2=0.02)
mesh.plot(color='w', smooth_shading=True)

# Create one that looks like a spinning top.
mesh = pv.ParametricSuperEllipsoid(n1=4, n2=0.5)
mesh.plot(color='w', smooth_shading=True, cpos='xz')

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

