discretize.TensorMesh.vtk_to_tensor_mesh#
- classmethod TensorMesh.vtk_to_tensor_mesh(vtrGrid)[source]#
Convert vtk object to a TensorMesh.
Convert
vtkRectilinearGridorRectilinearGridobject to aTensorMeshobject.- Parameters:
- vtuGrid
vtkRectilinearGridorRectilinearGrid A VTK or PyVista rectilinear grid object
- vtuGrid
- Returns:
discretize.TensorMeshA discretize tensor mesh