fedoo.MultiMesh.from_pyvista

static MultiMesh.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

A single supported cell type returns a Mesh; multiple cell types return a MultiMesh. Unsupported cell types are skipped with a warning. Fedoo node sets encoded as _nset_<name> field arrays are imported. _eset_<name> element sets are imported for single-type meshes; mixed meshes currently omit those element sets with a warning.