| Contents | Index |
view(vrworld_object) x = view(vrworld_object) x = view(vrworld_object,'-internal') x = view(vrworld_object,'-web')
vrworld_object | A vrworld object representing a virtual world. |
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.
myworld = vrworld('vrpend.wrl')
open(myworld)
view(myworld)

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 |