JSMultiCube

API for creating and modifying MultiCube objects. A MultiCube consists of multiple Cubes.

Create a API with Module.createMultiCube.

var vPosition = new Module.JSVector3D(129.1292403, 35.1721634, 100.0);
var object = Module.createMultiCube("ID", vPosition, false);

Function

addCube(id, size, count, angle, interval, fillColor, outLine, outLineColor)

Adds a new cube within the MultiCube.

Name
Type
Description

id

string

Cube object id.

size

Cube size.

count

number

Number of cube edges (creating an n-sided cube when n value is set).

angle

number

Cube rotation angle around the y-axis.

interval

number

Interval between cubes.

fillColor

Fill color.

outLine

boolean

Whether to apply an outline.

outLineColor

Outline color.

getCubeCount() → number

Returns the number of cubes entered in the MultiCube.

  • Return

    • number(0 ~) : Successfully returns the number of entered cubes.

    • number(-1) : If the MultiCube's internal container object is NULL.

getId() → string

Returns the ID of the object.

  • Return

    • string: Successful return of the object's Key string.

    • null: If the object is null.

setRowSize(size)

Sets the number of horizontal cube columns in MultiCube.

Name
Type
Description

size

number

Number of horizontal cube columns.

Getter / Setter

getDescription(), setDescription(desc) → string

Set a description for the object.

Name
Type
Description

desc

string

Object description string.

  • Return

    • string: Successful return of the object's description string.

    • null: If the object is null.

getName(), setName(name) → string

Sets the name of the object.

Name
Type
Description

name

string

The name to set for the object.

  • Return

    • string: Successful return of the object's name.

    • null: If the object is null.

getVisible(), setVisible(visible) → boolean

Sets the visibility state of an object.

Name
Type
Description

visible

boolean

true: Make the object visible. false: Hide the object.

  • Return

    • true: Object visible state.

    • false: Object hidden state.

Last updated