code: def trans_from_matrix(matrix):
      
      t = np.zeros((4, 4))
      for i in range(4):
          for j in range(4):
              t[i, j] = matrix.GetElement(i, j)
      return t
docs: Convert a vtk matrix to a numpy.ndarray