pyvista.CylinderSource#
- class CylinderSource(*args, **kwargs)[ソース]#
円柱ソースアルゴリズムクラス
警告
pyvista.Cylinder()関数はpyvista.CylinderSourceのpyvista.PolyDataを独自の方法で回転させます.pyvista.CylinderSource.outputをz軸方向に90度回転させ,メッシュを新しいcenterとdirectionに平行移動させ,向きを調整します.- パラメータ:
例
デフォルトの円柱ソースを作成します.
>>> import pyvista as pv >>> source = pv.CylinderSource() >>> source.output.plot(show_edges=True, line_width=5)
デフォルトの
CylinderSourceの3Dプロットを表示します.>>> import pyvista as pv >>> pl = pv.Plotter() >>> _ = pl.add_mesh(pv.CylinderSource(), show_edges=True, line_width=5) >>> pl.show()
CylinderSourceの出力を3Dプロットで視覚化します.>>> pl = pv.Plotter() >>> _ = pl.add_mesh(pv.CylinderSource().output, show_edges=True, line_width=5) >>> pl.show()
上記の例は動作が似ています.
メソッド#
アトリビュート#
キャップ円柱の終点をポリゴンで取得します. |
|
キャッピングがシリンダーをカプセルにするかどうかを取得します。 |
|
|
|
|
|
円柱の高さを取得します. |
|
このアルゴリズムのポートの出力データオブジェクトを取得します. |
|
円柱の半径を取得します. |
|
円柱の円形面上の点の数を取得します. |