Documentation

vrworld/save

Write virtual world to VRML file

Syntax

save(vrworld_object,'vrml_file')
save(vrworld_object,'vrml_file',export)

Arguments

vrworld_object

vrworld object representing a virtual world

vrml_file

Name of VRML file for virtual world

export

Make an additional copy, specifying all resources relative to actual virtual world location. Set to true or false.

Description

The save method saves the current virtual world to a VRML97 file. The virtual world must be open for you to use this method.

The resulting file is a VRML97 compliant UTF-8 encoded text file. Lines are indented using spaces. Line ends are encoded as CR-LF or LF according to the local system default. Values are separated by spaces.

The optional export argument saves an additional copy of the virtual world, specifying all resources relative to the actual virtual world location. Resources include virtual world elements such textures and resources from the Simulink 3D Editor library. This option supports using a Simulink® 3D Animation™ virtual world outside of Simulink 3D Animation.

Was this topic helpful?