User`s guide
10 Functions — Alphabetical List
10-146
vrworld/view
View virtual world
Syntax
view(vrworld_object)
x = view(vrworld_object)
x = view(vrworld_object,'-internal')
x = view(vrworld_object,'-web')
Arguments
vrworld_object A vrworld object representing a virtual world.
Description
The view method opens the default VRML viewer on the host computer and loads the
virtual world associated with the vrworld object into the viewer window. You specify the
default VRML viewer using the DefaultViewer preference. The virtual world must be
open for you to use this method.
x = view(vrworld_object) opens the default VRML viewer on the host computer and
loads the virtual world associated with the vrworld object into the viewer window. If
the Simulink 3D Animation Viewer is used, view also returns the vrfigure handle of
the viewer window. If a Web browser is used, view returns an empty array of vrfigure
handles.
x = view(vrworld_object',-internal')opens the virtual world in the Simulink
3D Animation Viewer.
x = view(vrworld_object,'-web') opens the virtual world in the Web browser.
If the virtual world is disabled for viewing (that is, the View property for the associated
vrworld object is set to 'off'), the view method does nothing.