vrml(h, filename, opts)

Function to convert MATLAB graphics objects to the VRML 97 format.

You are now following this Submission

The VRML function saves MATLAB graphics to a VRML 97 file. The resulting VRML file can be viewed with any VRML 97 - compliant viewer or used with Simulink 3D Animation.
The function, written originally by R. Paxson in 1997, now maintained by Simulink 3D Animation developers.

2014-10-24:
- Updated to work with the new MATLAB R2014b Graphics System.
- Added the 'noedgelines' optional argument to omit Patch edges in the VRML file. These lines are usually visually disturbing in virtual scenes.

Cite As

Jan (2026). vrml(h, filename, opts) (https://www.mathworks.com/matlabcentral/fileexchange/48242-vrml-h-filename-opts), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Simulation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0