pyvista.Property.specular

pyvista.Property.specular#

property Property.specular: float[ソース]#

鏡面を返すか設定します.

デフォルトは pyvista.plotting.themes._LightingConfig.specular.

鏡面光は,光沢のある物体に現れる光の輝点をシミュレートしています.

Property has range [0.0, 1.0].

Get the default specular value and visualize it with Phong shading.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.specular
0.0
>>> prop.interpolation = 'phong'
>>> prop.plot()
../../../_images/pyvista-Property-specular-1_00_00.png

鏡面を 0.5 で可視化します.

>>> prop.specular = 0.5
>>> prop.plot()
../../../_images/pyvista-Property-specular-1_01_00.png

鏡面を 1.0 で可視化します.

>>> prop.specular = 1.0
>>> prop.plot()
../../../_images/pyvista-Property-specular-1_02_00.png