注釈
Go to the end to download the full example code.
VRMLファイルの取り扱いについて#
VRML ファイルを PyVista の作図シーンに直接インポートします.VRMLフォーマットに関する詳細については, https://en.wikipedia.org/wiki/VRML を参照してください.
from __future__ import annotations
import pyvista
from pyvista import examples
sextant_file = examples.vrml.download_sextant()
プロッタをセットアップし、VRMLファイルをインポートします。 pyvista.Plotter.import_vrml()
を使用してファイルをインポートします。
pl = pyvista.Plotter()
pl.import_vrml(sextant_file)
pl.show()

Total running time of the script: (0 minutes 0.929 seconds)