pyvista.Transform.apply_to_dataset#
- Transform.apply_to_dataset(
- dataset: _DataSetOrMultiBlockType,
- /,
- mode: Literal['active_vectors', 'all_vectors'] = 'active_vectors',
- *,
- copy: bool = True,
- inverse: bool = False,
Apply the current transformation
matrixto a dataset.This is equivalent to
apply(dataset, mode). Seeapply()for details and examples.- Parameters:
- dataset
DataSet|MultiBlock Object to apply the transformation to.
- mode‘active_vectors’ | ‘all_vectors’, default: ‘active_vectors’
Mode for transforming the dataset’s vectors:
'active_vectors'transforms active normals and active vectors arrays only.'all_vectors'transforms all input vectors, i.e. all arrays with three components. This mode is equivalent to settingtransform_all_input_vectors=Truewithpyvista.DataObjectFilters.transform().
- inversebool, default:
False Apply the transformation using the
inverse_matrixinstead of thematrix.- copybool, default:
True Return a copy of the input with the transformation applied. Set this to
Falseto transform the input directly and return it.
- dataset
- Returns:
DataSet|MultiBlockTransformed dataset.
See also
applyApply this transformation to any input.
apply_to_pointsApply this transformation to points.
apply_to_vectorsApply this transformation to vectors.
apply_to_actorApply this transformation to an actor.
pyvista.DataObjectFilters.transformTransform a dataset.