Note
Click here to download the full example code
Working with VRML Files#
Import a VRML file directly into a PyVista plotting scene. For more details regarding the VRML format, see: https://en.wikipedia.org/wiki/VRML
import pyvista
from pyvista import examples
sextant_file = examples.vrml.download_sextant()
Out:
Downloading sextant.wrl: 0.00B [00:00, ?B/s]
Downloading sextant.wrl: 3%|3 | 8.19k/262k [00:00<00:06, 38.5kB/s]
Downloading sextant.wrl: 262kB [00:00, 1.21MB/s]
Set up the plotter and import VRML file.
pl = pyvista.Plotter()
pl.import_vrml(sextant_file)
pl.show()

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