Box#

class Drawing.Box#

The edges of a box. Created using Drawing.add_box().

center: Tuple#

Position of the center of the box.

Attribute:

Can be read or written

Return type:

Tuple

size: Tuple#

Lengths of the sides of the box along its x, y and z axes, in meters.

Attribute:

Can be read or written

Return type:

Tuple

rotation: Tuple#

Rotation of the box, as a quaternion.

Attribute:

Can be read or written

Return type:

Tuple

reference_frame: SpaceCenter.ReferenceFrame#

Reference frame for the position and rotation of the box.

Attribute:

Can be read or written

Return type:

SpaceCenter.ReferenceFrame

visible: boolean#

Whether the object is visible.

Attribute:

Can be read or written

Return type:

boolean

color: StdLib.ColorRGB#

The color of the edges.

Attribute:

Can be read or written

Return type:

StdLib.ColorRGB

thickness: number#

The thickness of the edges.

Attribute:

Can be read or written

Return type:

number

material: string#

Material used to render the object. Creates the material from a shader with the given name.

Attribute:

Can be read or written

Return type:

string

remove()#

Remove the object.