VRMLReader#
- class VRMLReader(*args, **kwargs)[source]#
VRMLReader for .wrl and .vrml files.
Note
This reads the file’s mesh geometry only. Any plot-specific items such as colors or material properties are not read.
Added in version 0.49.
- Parameters:
- path
str Path of the VRML to read.
- path
See also
pyvista.Plotter.import_vrmlImport a VTML file into a plotter.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_grasshopper(load=False)
>>> Path(filename).name
'grasshop.wrl'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()