Box#
Box
The edges of a box. Created using POST /drawing/add-box.
A Box object is passed and returned as its identifier, a number. A path that acts on
an object takes it as (id).
- GET /drawing/box/(id)/center#
Position of the center of the box.
- Parameters:
id – The identifier of the Box object.
- Response JSON Object:
value (tuple<double, double, double>)
- PUT /drawing/box/(id)/center#
Position of the center of the box.
- Parameters:
id – The identifier of the Box object.
- Request JSON Object:
value (tuple<double, double, double>) – The new value.
- GET /drawing/box/(id)/size#
Lengths of the sides of the box along its x, y and z axes, in meters.
- Parameters:
id – The identifier of the Box object.
- Response JSON Object:
value (tuple<double, double, double>)
- PUT /drawing/box/(id)/size#
Lengths of the sides of the box along its x, y and z axes, in meters.
- Parameters:
id – The identifier of the Box object.
- Request JSON Object:
value (tuple<double, double, double>) – The new value.
- GET /drawing/box/(id)/rotation#
Rotation of the box, as a quaternion.
- Parameters:
id – The identifier of the Box object.
- Response JSON Object:
value (tuple<double, double, double, double>)
- PUT /drawing/box/(id)/rotation#
Rotation of the box, as a quaternion.
- Parameters:
id – The identifier of the Box object.
- Request JSON Object:
value (tuple<double, double, double, double>) – The new value.
- GET /drawing/box/(id)/reference-frame#
Reference frame for the position and rotation of the box.
- Parameters:
id – The identifier of the Box object.
- Response JSON Object:
value (SpaceCenter.ReferenceFrame)
- PUT /drawing/box/(id)/reference-frame#
Reference frame for the position and rotation of the box.
- Parameters:
id – The identifier of the Box object.
- Request JSON Object:
value (SpaceCenter.ReferenceFrame) – The new value.
- GET /drawing/box/(id)/visible#
Whether the object is visible.
- Parameters:
id – The identifier of the Box object.
- Response JSON Object:
value (bool)
- PUT /drawing/box/(id)/visible#
Whether the object is visible.
- Parameters:
id – The identifier of the Box object.
- Request JSON Object:
value (bool) – The new value.
- GET /drawing/box/(id)/color#
The color of the edges.
- Parameters:
id – The identifier of the Box object.
- Response JSON Object:
value (StdLib.ColorRGB)
- PUT /drawing/box/(id)/color#
The color of the edges.
- Parameters:
id – The identifier of the Box object.
- Request JSON Object:
value (StdLib.ColorRGB) – The new value.
- GET /drawing/box/(id)/thickness#
The thickness of the edges.
- Parameters:
id – The identifier of the Box object.
- Response JSON Object:
value (float)
- PUT /drawing/box/(id)/thickness#
The thickness of the edges.
- Parameters:
id – The identifier of the Box object.
- Request JSON Object:
value (float) – The new value.
- GET /drawing/box/(id)/material#
Material used to render the object. Creates the material from a shader with the given name.
- Parameters:
id – The identifier of the Box object.
- Response JSON Object:
value (string)