discretize.mixins.TensorMeshIO.vtk_to_tensor_mesh#
- classmethod TensorMeshIO.vtk_to_tensor_mesh(vtrGrid)[source]#
Convert vtk object to a TensorMesh.
Convert
vtkRectilinearGrid
orRectilinearGrid
object to aTensorMesh
object.- Parameters:
- vtuGrid
vtkRectilinearGrid
orRectilinearGrid
A VTK or PyVista rectilinear grid object
- vtuGrid
- Returns:
discretize.TensorMesh
A discretize tensor mesh