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.

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()
../../../_images/pyvista-VRMLReader-4a1831f2a1d6a67b_00_01.png

See Also#

pyvista.Plotter.import_vrml

Import a VTML file into a plotter.

Inheritance#

Inherited members are documented on BaseReader, _FileIOBase.

See them all under Inherited Attributes and Inherited Methods.

Inherited Attributes#

_FileIOBase.extension_patterns

Return mapping from regex pattern matching associated with this class.

_FileIOBase.extensions

Return the file extensions associated with this class.

BaseReader.path

Return or set the filename or directory of the reader.

BaseReader.reader

Return the vtk Reader object.

Inherited Methods#

BaseReader.hide_progress

Hide the progress bar when loading the file.

BaseReader.read

Read data in file.

BaseReader.show_progress

Show a progress bar when loading the file.