reflect

RectilinearGrid.reflect(normal, point=None, inplace=False, transform_all_input_vectors=False, progress_bar=False)

Reflect a dataset across a plane.

Parameters
normaltuple(float)

Normal direction for reflection.

pointtuple(float), optional

Point which, along with normal, defines the reflection plane. If not specified, this is the origin.

inplacebool, optional

When True, modifies the dataset inplace.

transform_all_input_vectorsbool, optional

When True, all input vectors are transformed. Otherwise, only the points, normals and active vectors are transformed.

progress_barbool, optional

Display a progress bar to indicate progress.

Returns
pyvista.DataSet

Reflected dataset. Return type matches input.

Examples

>>> from pyvista import examples
>>> mesh = examples.load_airplane()
>>> mesh = mesh.reflect((0, 0, 1), point=(0, 0, -100))
>>> mesh.plot(show_edges=True)
../../../_images/pyvista-RectilinearGrid-reflect-1_00_00.png

See the Reflect Meshes for more examples using this filter.