pyvista.CubeSource

目次

pyvista.CubeSource#

class CubeSource(
center: VectorLike[float] = (0.0, 0.0, 0.0),
x_length: float = 1.0,
y_length: float = 1.0,
z_length: float = 1.0,
bounds: VectorLike[float] | None = None,
point_dtype: str = 'float32',
)[ソース]#

立方体ソースアルゴリズムクラス

Added in version 0.44.0.

パラメータ:
centersequence[float], default: (0.0, 0.0, 0.0)

[x, y, z] の中心.

x_lengthfloat, default: 1.0

x方向の立方体の長さ.

y_lengthfloat, default: 1.0

y方向の立方体の長さ.

z_lengthfloat, default: 1.0

z方向の立方体の長さ.

boundssequence[float], optional

Specify the bounding box of the cube. If given, all other size arguments are ignored. (x_min, x_max, y_min, y_max, z_min, z_max).

point_dtypestr, default: 'float32'

希望の出力ポイントタイプを設定する。float32' または 'float64' のいずれかでなければなりません。

Added in version 0.44.0.

デフォルトの円錐ソースを作成します.

>>> import pyvista as pv
>>> source = pv.CubeSource()
>>> source.output.plot(show_edges=True, line_width=5)
../../../_images/pyvista-CubeSource-1_00_00.png

メソッド

アトリビュート

CubeSource.bounds

キューブの境界ボックスを返すか設定します。

CubeSource.center

[x, y, z] の中心を取得します.

CubeSource.output

このアルゴリズムのポートの出力データオブジェクトを取得します.

CubeSource.point_dtype

希望する出力点のタイプを取得する。

CubeSource.x_length

指定された方向の立方体に沿ったxの長さを取得します。

CubeSource.y_length

指定された方向の立方体に沿ったyの長さを取得します。

CubeSource.z_length

指定された方向の立方体に沿ったzの長さを取得します。