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