Skip to Main Content Skip to Search
Product Documentation

removeViewpoint (Aero.VirtualRealityAnimation) - Remove viewpoint node from virtual reality animation

Syntax

removeViewpoint(h,viewpoint)
h.removeViewpoint(viewpoint)

Description

removeViewpoint(h,viewpoint) and h.removeViewpoint(viewpoint) remove the viewpoint specified by viewpoint from the virtual reality animation object h. viewpoint can be either the viewpoint name or the viewpoint index. This function can remove only one viewpoint at a time.

Examples

Remove the node, Lynx1.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = [matlabroot,'/toolbox/aero/astdemos/asttkoff.wrl'];
copyfile(h.VRWorldFilename,[tempdir,'asttkoff.wrl'],'f');
h.VRWorldFilename = [tempdir,'asttkoff.wrl'];
h.initialize();
h.addViewpoint(h.Nodes{2}.VRNode,'children','chaseView','View From Helicopter');
h.removeViewpoint('chaseView');

See Also

addViewpoint

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS