Polyline#

class Drawing.Polyline()#

A line through a list of vertices, open at its ends. Created using Drawing.addPolyline().

Polyline.getVertices()#
Polyline.setVertices(value)#

Vertices for the polyline.

Property:

Can be read or written

Return type:

Array of [number, number, number]

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph

Polyline.getReferenceFrame()#
Polyline.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

Polyline.getVisible()#
Polyline.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

Polyline.getColor()#
Polyline.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.

Polyline.getColors()#
Polyline.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.

Polyline.getThickness()#
Polyline.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

Polyline.getStartArrow()#
Polyline.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

Polyline.getEndArrow()#
Polyline.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

Polyline.getArrowSize()#
Polyline.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

Polyline.getDashed()#
Polyline.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

Polyline.getLabel()#
Polyline.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

Polyline.getMaterial()#
Polyline.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

Polyline.remove()#

Remove the object.

Game Scenes:

Flight, Tracking Station, Editor Vab, Editor Sph