pyvista.array_from_vtkmatrix#
- array_from_vtkmatrix(matrix: _vtk.vtkMatrix3x3 | _vtk.vtkMatrix4x4) NumpyArray[float] [source]#
Convert a vtk matrix to an array.
- Parameters:
- matrix
vtk.vtkMatrix3x3
|vtk.vtkMatrix4x4
The vtk matrix to be converted to a
numpy.ndarray
. Returned ndarray has shape (3, 3) or (4, 4) as appropriate.
- matrix
- Returns:
numpy.ndarray
Numpy array containing the data from
matrix
.