pyvista.examples.downloads.download_action_figure#
- download_action_figure(load=True, *, high_resolution=False)[ソース]#
アクションフィギュアのダウンロードスキャン.
Laser Designからの引用です.
バージョン 0.45 で変更: A decimated version of this dataset with 31 thousand cells is now returned. Previously, a high-resolution version with 630 thousand cells was returned. Use
high_resolution=True
for the high-resolution version.- パラメータ:
- 戻り値:
pyvista.PolyData
|str
load
に応じて,データセットまたはファイル名を指定します.
例
アクションフィギュアの例を見せます.これは,物理ベースのレンダリングとライティングを使用して,見栄えのするプロットを作る方法も示しています.
>>> import pyvista as pv >>> from pyvista import examples >>> dataset = examples.download_action_figure() >>> _ = dataset.clean(inplace=True) >>> pl = pv.Plotter(lighting=None) >>> pl.add_light(pv.Light((30, 10, 10))) >>> _ = pl.add_mesh( ... dataset, ... color='w', ... smooth_shading=True, ... pbr=True, ... metallic=0.3, ... roughness=0.5, ... ) >>> pl.camera_position = [ ... (32.3, 116.3, 220.6), ... (-0.05, 3.8, 33.8), ... (-0.017, 0.86, -0.51), ... ] >>> pl.show()
参考
- Action Figure Dataset
詳細はデータセットギャラリーのこのデータセットをご覧ください。