pyvista.to_meshio

目次

pyvista.to_meshio#

to_meshio(mesh: DataSet) meshio.Mesh[ソース]#

Convert a PyVista mesh to a meshio mesh instance.

Added in version 0.45.

パラメータ:
meshpyvista.DataSet

任意のPyVistaメッシュ/空間データタイプ.

戻り値:
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)