pyvista.PlaneSource

目次

pyvista.PlaneSource#

class PlaneSource(
i_resolution: int = 10,
j_resolution: int = 10,
center: VectorLike[float] = (0.0, 0.0, 0.0),
origin: VectorLike[float] = (-0.5, -0.5, 0.0),
point_a: VectorLike[float] = (0.5, -0.5, 0.0),
point_b: VectorLike[float] = (-0.5, 0.5, 0.0),
)[ソース]#

プレーンのソースを作成します。

The plane is defined by specifying an origin point, and then two other points that, together with the origin, define two axes for the plane (magnitude and direction). These axes do not have to be orthogonal - so you can create a parallelogram. The axes must not be parallel.

Added in version 0.44.

パラメータ:
i_resolutionint, default: 10

平面上のi方向の点の数です.

j_resolutionint, default: 10

平面上のj方向の点の数.

centersequence[float], default: (0.0, 0.0, 0.0)

[x, y, z] の中心.

originsequence[float], default: (-0.5, -0.5, 0.0)

Origin in [x, y, z].

point_asequence[float], default: (0.5, -0.5, 0.0)

[x, y, z] 内の位置.

point_bsequence[float], default: (-0.5, 0.5, 0.0)

[x, y, z] 内の位置.

メソッド

PlaneSource.flip_normal()

Flip the plane's normal.

PlaneSource.push(distance)

Translate the plane in the direction of the normal by the distance specified.

アトリビュート

PlaneSource.center

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

PlaneSource.i_resolution

平面上のi方向の点の数です.

PlaneSource.j_resolution

平面上のj方向の点の数.

PlaneSource.normal

Get the plane's normal vector.

PlaneSource.origin

Get the origin in [x, y, z].

PlaneSource.output

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

PlaneSource.point_a

Get the Location in [x, y, z].

PlaneSource.point_b

Get the Location in [x, y, z].