Main Content

removeViewpoint

Remove viewpoint node from virtual reality animation

Description

example

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.

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

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