Skip to Main Content Skip to Search
Product Documentation

vrworld/open - Open virtual world

Syntax

open(vrworld_object)

Arguments

vrworld_object

A vrworld object representing a virtual world.

Description

The open method opens the virtual world. When the virtual world is opened for the first time, the virtual world internal representation is created based on the associated VRML file.

If the input argument is an array of virtual world handles, all the virtual worlds associated with those handles are opened.

The virtual world must be open for you to use it. You can close the virtual world with the method close.

You can call the method open more than once, but you must use an appropriate number of close calls before the virtual world returns to a closed state.

Examples

Create two vrworld objects by typing

myworld1 = vrworld('vrmount.wrl')
myworld2 = vrworld('vrpend.wrl')

Next, create an array of virtual world handles by typing

myworlds = [myworld1 myworld2];

open(myworlds) opens both of these virtual worlds.

See Also

vrworld | vrworld/close

  


Related Products & Applications

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