Note
Click here to download the full example code
Reflect Meshes¶
This example reflects a mesh across a plane.
import pyvista
from pyvista import examples
This example demonstrates how to reflect a mesh across a plane.
Load an example mesh:
airplane = examples.load_airplane()
Reflect the mesh across a plane parallel to Z plane and coincident with (0, 0, -100)
airplane_reflected = airplane.reflect((0, 0, 1), point=(0, 0, -100))
Plot the reflected mesh:
p = pyvista.Plotter()
p.add_mesh(airplane, show_edges=True)
p.add_mesh(airplane_reflected, show_edges=True)
p.show()

Out:
[(3273.6506148297863, 3052.677210899122, 2276.6550856549816),
(896.9955291748047, 676.0221252441406, -100.0),
(0.0, 0.0, 1.0)]
Total running time of the script: ( 0 minutes 0.555 seconds)