discretize.SimplexMesh.vtk_to_simplex_mesh#
- classmethod SimplexMesh.vtk_to_simplex_mesh(vtuGrid)[source]#
Convert an unstructured grid of simplices to a SimplexMesh.
Convert
vtkUnstructuredGrid
orUnstructuredGrid
object to aSimplexMesh
object.- Parameters:
- vtrGrid
vtkUnstructuredGrid
orUnstructuredGrid
A VTK or PyVista unstructured grid object
- vtrGrid
- Returns:
discretize.SimplexMesh
A discretize tensor mesh