removeNode (Aero.VirtualRealityAnimation) - Remove node from virtual reality animation object

Syntax

removeNode(h,node)
h.removeNode(node)

Description

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

Examples

Remove the node, Lynx1.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = [matlabroot,'/toolbox/aero/astdemos/vrtkoff.wrl'];
copyfile(h.VRWorldFilename,[tempdir,'vrtkoff.wrl'],'f');
h.VRWorldFilename = [tempdir,'vrtkoff.wrl'];
h.initialize();
h.addNode('Lynx1',[matlabroot,'/toolbox/aero/astdemos/chaseHelicopter.wrl']);
h.removeNode('Lynx1');

See Also

addNode

  


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