pyvista.ImageEllipsoidSource#
- class ImageEllipsoidSource(whole_extent=None, center=None, radius=None)[source]#
Create a binary image of an ellipsoid class.
Added in version 0.44.0.
- Parameters:
Examples
Create an image of an ellipsoid.
>>> import pyvista as pv >>> source = pv.ImageEllipsoidSource( ... whole_extent=(0, 20, 0, 20, 0, 0), ... center=(10, 10, 0), ... radius=(3, 4, 5), ... ) >>> source.output.plot(cpos='xy')
Methods
Attributes
Get the center of the ellipsoid.
Get the output image as a ImageData.
Get the radius of the ellipsoid.
Get extent of the whole output image.