pyvista.DataSetFilters.slice_orthogonal#
- DataSetFilters.slice_orthogonal(
- x=None,
- y=None,
- z=None,
- generate_triangles=False,
- contour=False,
- progress_bar=False,
Create three orthogonal slices through the dataset on the three cartesian planes.
Yields a MutliBlock dataset of the three slices.
- Parameters:
- x
float
,optional
The X location of the YZ slice.
- y
float
,optional
The Y location of the XZ slice.
- z
float
,optional
The Z location of the XY slice.
- generate_trianglesbool, default:
False
When
True
, the output will be triangles. Otherwise the output will be the intersection polygons.- contourbool, default:
False
If
True
, apply acontour
filter after slicing.- progress_barbool, default:
False
Display a progress bar to indicate progress.
- x
- Returns:
pyvista.PolyData
Sliced dataset.
Examples
Slice the random hills dataset with three orthogonal planes.
>>> from pyvista import examples >>> hills = examples.load_random_hills() >>> slices = hills.slice_orthogonal(contour=False) >>> slices.plot(line_width=5)
See Slicing for more examples using this filter.