.. default-domain:: http .. highlight:: json Box === .. _http-Drawing.Box: .. rubric:: Box The edges of a box. Created using :http:post:`/drawing/add-box`. | Base class: :ref:`Drawable ` A ``Box`` object is returned as ``{"id": ..., "class": ...}``, its identifier and the name of its own class. An argument is that object or the identifier alone. A path that acts on an object takes the identifier as ``(id)``. .. http:get:: /drawing/box/(id)/center Position of the center of the box. :param id: The identifier of the :ref:`Box ` object. :resjson tuple value: .. http:put:: /drawing/box/(id)/center Position of the center of the box. :param id: The identifier of the :ref:`Box ` object. :reqjson tuple value: The new value. .. http:get:: /drawing/box/(id)/size Lengths of the sides of the box along its x, y and z axes, in meters. :param id: The identifier of the :ref:`Box ` object. :resjson tuple value: .. http:put:: /drawing/box/(id)/size Lengths of the sides of the box along its x, y and z axes, in meters. :param id: The identifier of the :ref:`Box ` object. :reqjson tuple value: The new value. .. http:get:: /drawing/box/(id)/rotation Rotation of the box, as a quaternion. :param id: The identifier of the :ref:`Box ` object. :resjson tuple value: .. http:put:: /drawing/box/(id)/rotation Rotation of the box, as a quaternion. :param id: The identifier of the :ref:`Box ` object. :reqjson tuple value: The new value. .. http:get:: /drawing/box/(id)/reference-frame Reference frame for the position and rotation of the box. :param id: The identifier of the :ref:`Box ` object. :resjson SpaceCenter.ReferenceFrame value: .. http:put:: /drawing/box/(id)/reference-frame Reference frame for the position and rotation of the box. :param id: The identifier of the :ref:`Box ` object. :reqjson SpaceCenter.ReferenceFrame value: The new value. .. http:get:: /drawing/box/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Box ` object. :resjson bool value: .. http:put:: /drawing/box/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Box ` object. :reqjson bool value: The new value. .. http:get:: /drawing/box/(id)/color The color of the object. Inherited from :ref:`Drawable `. .. note:: For a path drawn with more than one color, this is the color at its start. :param id: The identifier of the :ref:`Box ` object. :resjson StdLib.ColorRGB value: .. http:put:: /drawing/box/(id)/color The color of the object. Inherited from :ref:`Drawable `. .. note:: For a path drawn with more than one color, this is the color at its start. :param id: The identifier of the :ref:`Box ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /drawing/box/(id)/thickness The thickness of the edges. :param id: The identifier of the :ref:`Box ` object. :resjson float value: .. http:put:: /drawing/box/(id)/thickness The thickness of the edges. :param id: The identifier of the :ref:`Box ` object. :reqjson float value: The new value. .. http:get:: /drawing/box/(id)/material The material used to render the object. Creates the material from a shader with the given name. Throws an exception if the object is a marker, which the game draws with its own material. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Box ` object. :resjson string value: .. http:put:: /drawing/box/(id)/material The material used to render the object. Creates the material from a shader with the given name. Throws an exception if the object is a marker, which the game draws with its own material. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Box ` object. :reqjson string value: The new value. .. http:post:: /drawing/box/(id)/remove Remove the object. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Box ` object.