pyvista.core._validation.validate.validate_transform3x3#
- validate_transform3x3(transform, /, *, name='Transform')[source]#
Validate transform-like input as a 3x3 ndarray.
- Parameters:
- transformarray_like |
vtkMatrix3x3
|scipy.spatial.transform.Rotation
Transformation matrix as a 3x3 array, vtk matrix, or a SciPy
Rotation
instance.- name
str
, default: “Transform” Variable name to use in the error messages if any of the validation checks fail.
- transformarray_like |
- Returns:
np.ndarray
Validated 3x3 transformation matrix.
See also
validate_transform4x4
Similar function for 4x4 transforms.
validate_array
Generic array validation function.