reflect#
- DataSetFilters.reflect(normal, point=None, inplace=False, transform_all_input_vectors=False, progress_bar=False)[source]#
Reflect a dataset across a plane.
- Parameters:
- normal
tuple
(float
) Normal direction for reflection.
- point
tuple
(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.
- normal
- 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)
See the Reflect Meshes for more examples using this filter.