pyvista.ParametricEllipsoid#

ParametricEllipsoid(xradius=None, yradius=None, zradius=None, **kwargs)[source]#

Generate an ellipsoid.

ParametricEllipsoid generates an ellipsoid. If all the radii are the same, we have a sphere. An oblate spheroid occurs if RadiusX = RadiusY > RadiusZ. Here the Z-axis forms the symmetry axis. To a first approximation, this is the shape of the earth. A prolate spheroid occurs if RadiusX = RadiusY < RadiusZ.

Parameters:
xradiusfloat, default: 1.0

The scaling factor for the x-axis.

yradiusfloat, default: 1.0

The scaling factor for the y-axis.

zradiusfloat, default: 1.0

The scaling factor for the z-axis.

**kwargsdict, optional

See surface_from_para() and parametric_keywords() for additional keyword arguments.

Returns:
pyvista.PolyData

ParametricEllipsoid surface.

Examples

Create a ParametricEllipsoid mesh.

>>> import pyvista as pv
>>> mesh = pv.ParametricEllipsoid()
>>> mesh.plot(color='w', smooth_shading=True)
../../../_images/pyvista-ParametricEllipsoid-1_00_00.png