pyvista.Plane

目次

pyvista.Plane#

Plane(
center: VectorLike[float] = (0.0, 0.0, 0.0),
direction: VectorLike[float] = (0.0, 0.0, 1.0),
i_size: int = 1,
j_size: int = 1,
i_resolution: int = 10,
j_resolution: int = 10,
) PolyData[ソース]#

平面を作成します.

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

[x, y, z] 中のセントロイドの位置

directionsequence[float], default: (0.0, 0.0, 1.0)

[x, y, z] での平面の法線の方向

i_sizefloat, default: 1.0

i方向の平面のサイズ.

j_sizefloat, default: 1.0

j方向の平面のサイズ.

i_resolutionint, default: 10

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

j_resolutionint, default: 10

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

戻り値:
pyvista.PolyData

平面メッシュです.

デフォルト平面を作成します.

>>> import pyvista as pv
>>> mesh = pv.Plane()
>>> mesh.point_data.clear()
>>> mesh.plot(show_edges=True)
../../../_images/pyvista-Plane-1_00_00.png