fedoo.Mesh.from_pyvista

static Mesh.from_pyvista(pvmesh: PolyData | UnstructuredGrid, name: str = '') Mesh

Build a Mesh from a pyvista UnstructuredGrid or PolyData mesh.

Node and element data are not copied.

Parameters:
  • pvmesh (pyvista mesh)

  • name (str) – name of the new created Mesh. If specitified, this Mesh will be added in the dict containing all the loaded Mesh (Mesh.get_all()). By default, the Mesh is not added to the list.

Notes

If the pyvista mesh with single element type may be imported. Multi-element meshes will be integrated later.