vtkmatrix_from_array#
- vtkmatrix_from_array(
- array: MatrixLikeFloat,
Convert a
numpy.ndarrayor array-like to a vtk matrix.- Parameters:
- array
MatrixLikeFloat The array or array-like to be converted to a vtk matrix. Shape (3, 3) gets converted to a vtkMatrix3x3, shape (4, 4) gets converted to a vtkMatrix4x4. No other shapes are valid.
- array
- Returns:
- outputvtkMatrix3x3 | vtkMatrix4x4
VTK matrix.
Used In#
Gallery Examples