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
- xradius
float
,optional
The scaling factor for the x-axis. Default is 1.
- yradius
float
,optional
The scaling factor for the y-axis. Default is 1.
- zradius
float
,optional
The scaling factor for the z-axis. Default is 1.
- **kwargs
dict
,optional
See
surface_from_para()
andparametric_keywords()
for additional keyword arguments.
- xradius
- Returns
pyvista.PolyData
ParametricEllipsoid surface.
Examples
Create a ParametricEllipsoid mesh.
>>> import pyvista >>> mesh = pyvista.ParametricEllipsoid() >>> mesh.plot(color='w', smooth_shading=True)