Main Content

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.

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.

Examples

Remove Node

This example shows how to remove the node, Lynx1.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = 'asttkoff.wrl';
h.initialize();
h.addNode('Lynx1','chaseHelicopter.wrl');
h.removeNode('Lynx1');

Figure VR Plane Take-Off contains objects of type hgjavacomponent, uimenu, uipanel, uitoolbar.

Version History

Introduced in R2007b