Main Content

removeViewpoint

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

removeViewpoint will be removed in a future release.

Description

removeViewpoint(h,viewpoint) removes the viewpoint specified by viewpoint from the virtual reality animation object h. This function can remove only one viewpoint at a time.

Note

You can use this function to remove a viewpoint added by addViewpoint. If you need to remove a viewpoint from a previously defined .wrl file, use a VRML editor.

example

Examples

collapse all

This example shows how to remove the viewpoint, Lynx1.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = 'asttkoff.wrl';
h.initialize();
h.addViewpoint(h.Nodes{2}.VRNode,'children','chaseView','View From Helicopter');
h.removeViewpoint('chaseView');

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

Input Arguments

collapse all

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

Viewpoint name, specified as a character vector or string, or viewpoint index, specified as a scalar.

Version History

Introduced in R2007b

expand all