User`s guide
vrworld
10-125
myworld = vrworld creates an invalid vrworld handle
myworld = vrworld('') creates an empty vrworld object that is not associated with
any VRML file
myworld = vrworld([]) returns an empty array of returns an empty array of
vrworld handles.
A vrworld object identifies a virtual world in a way very similar to a handle. All
functions that affect virtual worlds accept a vrworld object as an argument to identify
the virtual world.
If the given virtual world already exists in memory, the handle to the existing virtual
world is returned. A second virtual world is not loaded into memory. If the virtual world
does not exist in memory, it is loaded from the associated VRML file. The newly loaded
virtual world is closed and must be opened before you can use it.
The vrworld object associated with a virtual world remains valid until you use either
delete or vrclear.
Examples
myworld = vrworld('vrpend.wrl')
Method Summary
Method Description
addexternproto Add externproto declaration to virtual world.
close Close virtual world
delete Remove virtual world from memory
edit Open virtual world file in external VRML editor
get Property value of vrworld object
isvalid 1 if vrworld object is valid, 0 if not
nodes List nodes available in virtual world
open Open virtual world