Arc#

Arc

An arc of a circle. Created using POST /drawing/add-arc.

A Arc object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

GET /drawing/arc/(id)/center#

Position of the center of the arc.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (tuple<double, double, double>)

PUT /drawing/arc/(id)/center#

Position of the center of the arc.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (tuple<double, double, double>) – The new value.

GET /drawing/arc/(id)/normal#

Normal of the plane of the arc.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (tuple<double, double, double>)

PUT /drawing/arc/(id)/normal#

Normal of the plane of the arc.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (tuple<double, double, double>) – The new value.

GET /drawing/arc/(id)/start-direction#

Direction from the center to the start of the arc.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (tuple<double, double, double>)

PUT /drawing/arc/(id)/start-direction#

Direction from the center to the start of the arc.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (tuple<double, double, double>) – The new value.

GET /drawing/arc/(id)/angle#

Angle of the arc, in radians.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (double)

PUT /drawing/arc/(id)/angle#

Angle of the arc, in radians.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (double) – The new value.

GET /drawing/arc/(id)/radius#

Radius of the arc, in meters.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (double)

PUT /drawing/arc/(id)/radius#

Radius of the arc, in meters.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (double) – The new value.

GET /drawing/arc/(id)/reference-frame#

Reference frame for the positions of the object.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (SpaceCenter.ReferenceFrame)

PUT /drawing/arc/(id)/reference-frame#

Reference frame for the positions of the object.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (SpaceCenter.ReferenceFrame) – The new value.

GET /drawing/arc/(id)/visible#

Whether the object is visible.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (bool)

PUT /drawing/arc/(id)/visible#

Whether the object is visible.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/arc/(id)/color#

The color of the path.

Note

For a path drawn with more than one color, this is the color at its start.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (StdLib.ColorRGB)

PUT /drawing/arc/(id)/color#

The color of the path.

Note

For a path drawn with more than one color, this is the color at its start.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (StdLib.ColorRGB) – The new value.

GET /drawing/arc/(id)/colors#

The colors of the path, blended evenly from its start to its end.

Note

Throws an exception if the list is empty or holds more than 8 colors.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (list<StdLib.ColorRGB>)

PUT /drawing/arc/(id)/colors#

The colors of the path, blended evenly from its start to its end.

Note

Throws an exception if the list is empty or holds more than 8 colors.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (list<StdLib.ColorRGB>) – The new value.

GET /drawing/arc/(id)/thickness#

The thickness of the path.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (float)

PUT /drawing/arc/(id)/thickness#

The thickness of the path.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (float) – The new value.

GET /drawing/arc/(id)/start-arrow#

Whether an arrow head is drawn at the start.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (bool)

PUT /drawing/arc/(id)/start-arrow#

Whether an arrow head is drawn at the start.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/arc/(id)/end-arrow#

Whether an arrow head is drawn at the end.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (bool)

PUT /drawing/arc/(id)/end-arrow#

Whether an arrow head is drawn at the end.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/arc/(id)/arrow-size#

The size of the arrow heads, relative to the thickness.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (float)

PUT /drawing/arc/(id)/arrow-size#

The size of the arrow heads, relative to the thickness.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (float) – The new value.

GET /drawing/arc/(id)/dashed#

Whether the path is drawn as a dashed line.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (bool)

PUT /drawing/arc/(id)/dashed#

Whether the path is drawn as a dashed line.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/arc/(id)/label#

Text drawn halfway along the path, facing the camera. Empty for no label.

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (string)

PUT /drawing/arc/(id)/label#

Text drawn halfway along the path, facing the camera. Empty for no label.

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (string) – The new value.

GET /drawing/arc/(id)/material#

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

Parameters:
  • id – The identifier of the Arc object.

Response JSON Object:
  • value (string)

PUT /drawing/arc/(id)/material#

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

Parameters:
  • id – The identifier of the Arc object.

Request JSON Object:
  • value (string) – The new value.

POST /drawing/arc/(id)/remove#

Remove the object.

Parameters:
  • id – The identifier of the Arc object.