Property.anisotropy

Property.anisotropy#

property Property.anisotropy: float[source]#

Return or set the anisotropy coefficient.

This value controls the anisotropy of the material (0.0 means isotropic). This requires that the interpolation be set to 'Physically based rendering'.

For further details see PBR Journey Part 2 : Anisotropy model with VTK

Property has range [0.0, 1.0]. A value of 0.0 is isotropic and larger values stretch the highlight further along the anisotropy direction.

Notes#

This attribute requires VTK v9.1.0 or newer.

Examples#

Download Python source code | Download Jupyter notebook

Get the default anisotropy and visualize it with physically based rendering.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.anisotropy
0.0
>>> prop.interpolation = 'pbr'  # required
>>> prop.plot()
../../../_images/pyvista-Property-anisotropy-8f3015e11f599859_00_00.png