Main Content

deleteViewpoint

Delete viewpoint from 3D environment

Since R2025a

    Description

    deleteViewpoint(world,viewpoint) deletes the view specified by viewpoint from the 3D environment world.

    Input Arguments

    collapse all

    World object that defines the 3D environment, specified as a sim3d.World object.

    Example: world = sim3d.World()

    Viewpoint object that defines the viewpoint created using the createViewpoint function, specified as a Viewpoint object. The Viewpoint object is stored as a field in the viewpoint structure. You can use the Viewpoints property of the sim3d.World class to access the Viewpoint object. You can also modify the aspects of the viewpoint object by setting values for the Name, Translation, and Rotation properties.

    Example: viewpoint = View1

    Version History

    Introduced in R2025a