# Reflect Meshes
# ==============

# This example reflects a mesh across a plane using
# `reflect()`.
import pyvista as pv
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:
pl = pv.Plotter()
pl.add_mesh(airplane, show_edges=True)
pl.add_mesh(airplane_reflected, show_edges=True)
pl.show()

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

