| Contents | Index |
removeNode(h,node)
h.removeNode(node)
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.
Note You can use only this function to remove a node added by addNode. If you need to remove a node from a previously defined .wrl file, use a VRML editor. |
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.addNode('Lynx1',[matlabroot,'/toolbox/aero/astdemos/chaseHelicopter.wrl']);
h.removeNode('Lynx1');
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 |