Polygon#

class Drawing.Polygon()#

A polygon. Created using Drawing.addPolygon().

Polygon.getVertices()#
Polygon.setVertices(value)#

Vertices for the polygon.

Property:

Can be read or written

Return type:

Array of [number, number, number]

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getReferenceFrame()#
Polygon.setReferenceFrame(value)#

Reference frame for the positions of the object.

Property:

Can be read or written

Return type:

SpaceCenter.ReferenceFrame

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getVisible()#
Polygon.setVisible(value)#

Whether the object is visible.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getColor()#
Polygon.setColor(value)#

The color of the path.

Property:

Can be read or written

Return type:

StdLib.ColorRGB

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Note

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

Polygon.getColors()#
Polygon.setColors(value)#

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

Property:

Can be read or written

Return type:

Array of StdLib.ColorRGB

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Note

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

Polygon.getThickness()#
Polygon.setThickness(value)#

The thickness of the path.

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getStartArrow()#
Polygon.setStartArrow(value)#

Whether an arrow head is drawn at the start.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getEndArrow()#
Polygon.setEndArrow(value)#

Whether an arrow head is drawn at the end.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getArrowSize()#
Polygon.setArrowSize(value)#

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

Property:

Can be read or written

Return type:

number

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getDashed()#
Polygon.setDashed(value)#

Whether the path is drawn as a dashed line.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getLabel()#
Polygon.setLabel(value)#

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

Property:

Can be read or written

Return type:

string

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.getMaterial()#
Polygon.setMaterial(value)#

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

Property:

Can be read or written

Return type:

string

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polygon.remove()#

Remove the object.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph