pyvista.Arrow

目次

pyvista.Arrow#

Arrow(
start: VectorLike[float] = (0.0, 0.0, 0.0),
direction: VectorLike[float] = (1.0, 0.0, 0.0),
tip_length: float = 0.25,
tip_radius: float = 0.1,
tip_resolution: int = 20,
shaft_radius: float = 0.05,
shaft_resolution: int = 20,
scale: float | Literal['auto'] | None = 1.0,
) PolyData[ソース]#

矢印を作成します.

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

[x, y, z] の開始位置.

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

[x, y, z] で矢印が指す方向.

tip_lengthfloat, default: 0.25

先端の長さ.

tip_radiusfloat, default: 0.1

先端の半径.

tip_resolutionint, default: 20

先端の周囲の面の数.

shaft_radiusfloat, default: 0.05

軸の半径.

shaft_resolutionint, default: 20

軸の周囲の面の数.

scalefloat | str, optional

オブジェクト全体のスケール係数,デフォルトは1のスケールです. 'auto' は方向配列の長さに合わせてスケールされます.

戻り値:
pyvista.PolyData

矢印のメッシュ.

デフォルトの矢印をプロットします.

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