Slicing
Many Slices Along Axis
- class PVGeo.filters.slicing.ManySlicesAlongAxis(n_slices=5, axis=0, rng=None, pad=0.01, outputType='vtkMultiBlockDataSet')[source]
Bases:
_SliceBase
Slices a
vtkDataSet
along a given axis many times. This produces a specified number of slices at once each with a normal vector oriented along the axis of choice and spaced uniformly through the range of the dataset on the chosen axis.- Parameters:
pad (float) – Padding as a percentage (0.0, 1.0)
- static get_input_center(pdi)[source]
Gets the center of the input data set
- Returns:
the XYZ coordinates of the center of the data set.
- Return type:
tuple
Many Slices Along Points
- class PVGeo.filters.slicing.ManySlicesAlongPoints(n_slices=5, nearest_nbr=True, outputType='vtkMultiBlockDataSet')[source]
Bases:
_SliceBase
Takes a series of points and a data source to be sliced. The points are used to construct a path through the data source and a slice is added at intervals of that path along the vector of that path at that point. This constructs many slices through the input dataset as a merged
vtkMultiBlockDataSet
.Note
Make sure the input data source is slice-able.
The SciPy module is required for this filter.
Slice Through Time
- class PVGeo.filters.slicing.SliceThroughTime(n_slices=5, dt=1.0, axis=0, rng=None)[source]
Bases:
ManySlicesAlongAxis
Takes a sliceable
vtkDataSet
and progresses a slice of it along a given axis. The macro requires that the clip already exist in the pipeline. This is especially useful if you have many clips linked together as all will move through the seen as a result of this macro.
Slide Slice Along Points
- class PVGeo.filters.slicing.SlideSliceAlongPoints(n_slices=5, nearest_nbr=True)[source]
Bases:
ManySlicesAlongPoints
Takes a series of points and a data source to be sliced. The points are used to construct a path through the data source and a slice is added at specified locations along that path along the vector of that path at that point. This constructs one slice through the input dataset which the user can translate via a slider bar in ParaView.
Note
Make sure the input data source is slice-able.
The SciPy module is required for this filter.