fedoo.Mesh.read
- static Mesh.read(filename: str, name: str = '') Mesh
Build a Mesh from a file.
The file type is inferred from the file name. This function use the pyvista read method which is itself based on the vtk native readers and the meshio readers (available only if the meshio lib is installed.)
- Parameters:
filename (str) – Name of the file to read
name (str, optional) – 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
For now, only mesh with single element type may be imported. Multi-element meshes will be integrated later.