O3D_OBJECT_EXISTS()

O3D_OBJECT_EXISTS(N)

RETURNS 1 IF THE 3D OBJECT NUMBER N EXISTS, 0 OTHERWISE

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

ACTION

The fonction O3D_OBJECT_EXISTS(N) returns 1 the 3D object number N exists and 0 otherwise.

SYNTAX: Result=O3D_OBJECT_EXISTS(N)

  • N = 3D object number (integer or real).

USE

  • The function O3D_OBJECT_EXISTS() is used to know if a 3D object exists.

ERROR

  • If number N is not a correct expression.

EXAMPLE

rem create a SCENE3D

scene3d 1

rem create a 3D object in the scene3d

3d_teapot 1

rem test if it exists

if o3d_object_exists(1)=1 then caption 0,"the 3D object exists"

SEE ALSO

3D_ACTOR

3D_BOX

3D_CONE

3D_CUBE

3D_CYLINDER

3D_DODECAHEDRON

3D_LINE

3D_MESH

3D_PLANE

3D_SKYBOX

3D_SPHERE

3D_TEAPOT

3D_TEXT

3D_TORUS