fedoo.Mesh.save
- Mesh.save(filename: str, binary: bool = True) None
Save the mesh object to file.
This function uses the save function of the pyvista UnstructuredGrid object, except for FDH5 files which are written directly as raw mesh data. If using a ‘vtk’ format, The node and element sets are saved as field data with a prefix “_nset_” or “_eset_”.
- Parameters:
filename (str) – Filename of output file including the path. Writer type is inferred from the extension of the filename. If no extension is set, ‘vtk’ is assumed.
binary (bool, optional) – If True, write as binary. Otherwise, write as ASCII.