VRMLReader

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:
pathstr

Path of the VRML to read.

See also

pyvista.Plotter.import_vrml

Import a VTML file into a plotter.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.vrml.download_grasshopper()
>>> Path(filename).name
'grasshop.wrl'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-VRMLReader-16fac38b2acbb0ec_00_01.png

Methods#

Attributes#