| Contents | Index |
myworld = vrworld('filename')
myworld = vrworld('filename', 'new')
myworld = vrworld
myworld = vrworld([])
filename | String containing the name of the VRML file from which the virtual world is loaded. If no file extension is specified, the file extension .wrl is assumed. |
'new' | Argument to create a virtual world associated with filename. |
myworld = vrworld('filename') creates a virtual world associated with the VRML file filename and returns its handle. If the virtual world already exists, a handle to the existing virtual world is returned.
myworld = vrworld('filename', 'new') creates a virtual world associated with the VRML file filename and returns its handle. It always creates a new virtual world object, even if another vrworld object associated with the same VRML file already exists.
myworld = vrworld creates an empty vrworld handle that does not refer to any virtual world.
myworld = vrworld([]) 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.
myworld = vrworld('vrpend.wrl')
| 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 |
| reload | Reload virtual world from VRML file |
| save | Write virtual world to VRML file |
| set | Change property values of vrworld object |
| view | View virtual world |
vrworld/close | vrworld/delete | vrworld/open

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |