Transform.reflection

Transform.reflection#

property Transform.reflection: Literal[1, -1][source]#

Return the reflection component of the current transformation matrix as an integer.

1 is returned if there is no reflection, and -1 is returned if there is a reflection.

Examples#

Download Python source code | Download Jupyter notebook

Create a transform and get its reflection.

>>> import pyvista as pv
>>> trans = pv.Transform()
>>> trans.reflection
1

Compose a reflection about the x-axis and get the reflection again.

Compose a second reflection and get the reflection again.

See Also#

has_reflection, reflect, decompose