注釈
Go to the end をクリックすると完全なサンプルコードをダウンロードできます.
照明プロパティ#
周囲光 ,拡散反射光 , 鏡面反射光など,レンダリングされたメッシュのライティングを制御します.これらのオプションは, add_mesh
への lighting
引数が True
(デフォルトでは True
です.)の場合にのみ動作します.
lighting=False
を add_mesh
に渡すと,指定したメッシュのすべてのライティングをオフにできます.
from __future__ import annotations
import pyvista as pv
from pyvista import examples
mesh = examples.download_st_helens().warp_by_scalar()
cpos = [(575848.0, 5128459.0, 22289.0), (562835.0, 5114981.5, 2294.5), (-0.5, -0.5, 0.7)]
まず,デフォルトのライティング条件を持つメッシュを見てみましょう.

照明なしではどうですか

鏡面特性の実証

鏡面反射のみ

スペキュラパワー

3機種の使用実績

一般的なライティング条件の詳細については, 照明 の例を参照してください.
Total running time of the script: (0 minutes 12.509 seconds)