pyvista.ParametricEllipsoid#
- ParametricEllipsoid( ) PolyData [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
, default: 1.0 The scaling factor for the x-axis.
- yradius
float
, default: 1.0 The scaling factor for the y-axis.
- zradius
float
, default: 1.0 The scaling factor for the z-axis.
- **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 as pv >>> mesh = pv.ParametricEllipsoid() >>> mesh.plot(color='w', smooth_shading=True)