pyvista.to_meshio#
- to_meshio(mesh: DataSet) meshio.Mesh [ソース]#
Convert a PyVista mesh to a
meshio
mesh instance.Added in version 0.45.
- パラメータ:
- mesh
pyvista.DataSet
任意のPyVistaメッシュ/空間データタイプ.
- mesh
- 戻り値:
meshio.Mesh
A mesh instance from the
meshio
library.
- エラー処理:
ImportError
If the meshio package is not installed.
例
Convert a pyvista sphere to a
meshio
mesh instance.>>> import pyvista as pv >>> sphere = pv.Sphere() >>> mesh = pv.to_meshio(sphere)