createCuboid
Syntax
<Path>.createCuboid(Dimensions:length[3][, LineWidth:real, LineColor:integer]) → any |
The method createCuboid creates a cuboid 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 cuboid.
To create a flat wall, set one of the dimensions to 0. You might, for example enter [0,2,3] to create a wall on the YZ plane with a size of 2 times 3 meters.
The optional parameter LineWidth of data type real designates the width of the line around the created cuboid. Enter a number greater than 0.
The optional parameter LineColor of data type integer designates the color of the line around the created cuboid.
If you do not specify the optional parameters, the cuboid does not have a border.
Return Value
The return value has the data type any and specifies the created graphic, compare the method _3D.getGraphic.
Example
var Cube := _3D.getGraphic("deco").createCuboid([3.0, 2.5, 1]) |
var Cube := _3D.getGraphic("deco").createCuboid([0, 2, 3]) –- flat wall |
Related Topics