discretize.SimplexMesh.vtk_to_simplex_mesh#

classmethod SimplexMesh.vtk_to_simplex_mesh(vtuGrid)[source]#

Convert vtkUnstructuredGrid or UnstructuredGrid object to a SimplexMesh object.

Parameters
vtrGridvtkUnstructuredGrid or UnstructuredGrid

A VTK or PyVista unstructured grid object

Returns
discretize.SimplexMesh

A discretize tensor mesh