pyvista.save_meshio#
- save_meshio( ) None [source]#
Save mesh to file using meshio.
- Parameters:
- filename
str
Filename to save the mesh to.
- mesh
pyvista.DataSet
Any PyVista mesh/spatial data type.
- file_format
str
,optional
File type for meshio to save. For example
'.bdf'
. This is normally inferred from the extension but this can be overridden.- **kwargs
dict
,optional
Additional keyword arguments. See
meshio.write_points_cells
for more details.
- filename
Examples
Save a pyvista sphere to a Abaqus data file.
>>> import pyvista as pv >>> sphere = pv.Sphere() >>> pv.save_meshio('mymesh.inp', sphere)