createBox

Syntax

<Path>.createBox(Dimensions:length[3][, WallThickness:length]) → any

The method _3D.createBox creates a box in the graphic or graphic group designated by <Path>.

Parameters

  • The parameter Dimensions is an array of data type length which sets the width/dimension X, depth/dimension Y, and height/dimension Z of the box.

  • The optional parameter WallThickness of data type length sets the thickness of the walls of the box. If you do not specify the parameter, the wall thickness is 0.

Return Value

The return value has the data type any and specifies the created graphic, compare the method _3D.getGraphic.

Example

var box := _3D.getGraphic("deco").createBox([2.0,2.5,1], 0.15)
box.MaterialActive := true
box.MaterialDiffuseColor := makeRGBValue(255,0,0)

Related Topics

Box

Detailed Access To Graphics

_3D.getGraphic