pyvista.ImageEllipsoidSource

pyvista.ImageEllipsoidSource#

class ImageEllipsoidSource(*args, **kwargs)[ソース]#

Create a binary image of an ellipsoid class.

Added in version 0.44.0.

パラメータ:
whole_extentsequence[int]

The extent of the whole output image.

centersequence[float]

The center of the ellipsoid.

radiustuple

The radius of the ellipsoid.

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')
../../../_images/pyvista-ImageEllipsoidSource-1_00_00.png

メソッド

アトリビュート

ImageEllipsoidSource.center

楕円体の中心を取得します.

ImageEllipsoidSource.output

出力画像をImageDataとして取得します。

ImageEllipsoidSource.radius

楕円体の半径を取得します.

ImageEllipsoidSource.whole_extent

出力画像全体の範囲を返します.