Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

removeViewpoint (Aero.VirtualRealityAnimation)

Remove viewpoint node from virtual reality animation

Syntax

removeViewpoint(h,viewpoint)
h.removeViewpoint(viewpoint)

Description

removeViewpoint(h,viewpoint) and h.removeViewpoint(viewpoint) remove the viewpoint specified by viewpoint from the virtual reality animation object h. viewpoint can be either the viewpoint name or the viewpoint index. 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

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.addViewpoint(h.Nodes{2}.VRNode,'children','chaseView','View From Helicopter');
h.removeViewpoint('chaseView');

See Also

Introduced in R2007b

Was this topic helpful?