Main Content

removeNode

(To be removed) Remove node from virtual reality animation object

Simulink 3D Animation Viewer used by removeNode has been removed. Aero.VirtualRealityAnimation does not open or play animations. Use sim3d classes in Unreal Engine 3d Environment to create and view a 3D environment instead. For more information on transitioning to the new 3D environment, see Transition Aero.VirtualRealityAnimation to Unreal Engine 3D Environment.

Description

removeNode(h,node) removes the node specified by node from the virtual reality animation object h. 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.

example

Examples

collapse all

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');

{"String":"Figure VR Plane Take-Off contains objects of type hgjavacomponent, uimenu, uipanel, uitoolbar.","Tex":[],"LaTex":[]}

Input Arguments

collapse all

Virtual reality animation object, specified as an Aero.VirtualRealityAnimation object.

Node name, specified as a character vector or string, or node index, specified as a scalar.

Version History

Introduced in R2007b

expand all