discretize.SimplexMesh.to_vtk#
- SimplexMesh.to_vtk(models=None)[source]#
Convert mesh (and models) to corresponding VTK or PyVista data object.
This method converts a
discretizemesh (and associated models) to its corresponding VTK or PyVista data object.- Parameters:
- models
dictof[str, (n_cells)numpy.ndarray],optional Models are supplied as a dictionary where the keys are the model names. Each model is a 1D
numpy.ndarrayof size (n_cells).
- models
- Returns:
pyvista.UnstructuredGrid,pyvista.RectilinearGridorpyvista.StructuredGridThe corresponding VTK or PyVista data object for the mesh and its models