3D_LINE_WIDTH

3D_LINE_WIDTH N,W

SET THE WIDTH OF THE 3D_LINE OBJECT NUMBER N

  • Type: Command
  • Parameters: 2
  • Group: 3D Objects

ACTION

The command 3D_LINE_WIDTH N,W set the width W in pixels of the 3D_LINE number N.

Remark: in a SCENE3D, the width of a 3D_LINE does not depend on its distance to the camera : its aspect remains the same.

At creation of a 3D_LINE, the width is 1.

SYNTAX: 3D_LINE_WIDTH N,W

  • 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.
  • W = width value (integer or real) of the line.

USE

  • The command 3D_LINE_WIDTH is used to change the width of an existing 3D_LINE.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is less than or equal to 0.
  • If number N is not the number of a 3D_LINE.
  • If the 3D object number N does not exist.
  • If W is not a correct expression.
  • If W is not greater than 0.
  • If W is greater than 200.

EXAMPLE

rem create a 3D world

scene3d 1

rem create the first point of a line

3d_line 1,0,0,0

rem create the second point of the line

3d_line 1,1,0,0

rem set the width of line to 5

3d_line_width 1,5

SEE ALSO

3D_COLOR

3D_DELETE

3D_DELETE_ALL

3D_HIDE

3D_SHOW

3D_TARGET_IS