flip_normal

UniformGrid.flip_normal(normal: List[float], point=None, transform_all_input_vectors=False)

Flip mesh about the normal.

Parameters
normaltuple

Normal vector to flip about.

pointlist, optional

Point to rotate about. Defaults to center of mesh at center.

transform_all_input_vectorsbool, optional

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

Examples

>>> import pyvista
>>> from pyvista import examples
>>> pl = pyvista.Plotter(shape=(1, 2))
>>> pl.subplot(0, 0)
>>> pl.show_axes()
>>> mesh1 = examples.download_teapot()
>>> _ = pl.add_mesh(mesh1)
>>> pl.subplot(0, 1)
>>> pl.show_axes()
>>> mesh2 = mesh1.copy()
>>> mesh2.flip_normal([1.0, 1.0, 1.0])
>>> _ = pl.add_mesh(mesh2)
>>> pl.show(cpos="xy")
../../../_images/pyvista-UniformGrid-flip_normal-1_00_00.png