3D_DELETE

3D_DELETE N

DELETES THE 3D OBJECT NUMBER N

  • Type: Command
  • Parameter: 1
  • Group: 3D Objects

ACTION

The command 3D_DELETE N deletes the 3D object designated by its number N.

The number N becomes free and can be reused to create a new 3D object.

SYNTAX: 3D_DELETE N

  • N = 3D object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of 3D objects.

USE

  • The command is used to delete a 3D object.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is not greater than 0.
  • If the 3D object number N does not exist.

EXAMPLE

rem create a 3D world

scene3d 1

rem resize the 3D world

width 1,300:height 1,300

rem place the camera

cam_position 5,10,10

rem create a cube

3d_cube 1,1.2

rem wait 2 seconds

wait 2000

rem delete it

3d_delete 1

SEE ALSO

3D_ACTOR

3D_BOX

3D_CONE

3D_CUBE

3D_CYLINDER

3D_DELETE_ALL

3D_DODECAHEDRON

3D_LINE

3D_MESH

3D_SPHERE

3D_TEAPOT

3D_TEXT

3D_TORUS