space_ex v0.8.0 SpaceEx.Drawing.Polygon

A polygon.

Created using SpaceEx.Drawing.add_polygon/4.

Link to this section Summary

Functions

Set the color

Material used to render the object

Reference frame for the positions of the object

Remove the object

Set the color

Material used to render the object

Reference frame for the positions of the object

Set the thickness

Vertices for the polygon

Whether the object is visible

Set the thickness

Vertices for the polygon

Whether the object is visible

Link to this section Functions

Set the color

Returns: {double, double, double}, where double is a high precision decimal

Material used to render the object.

Creates the material from a shader with the given name.

Returns: a string

Link to this function reference_frame(this)

Reference frame for the positions of the object.

Returns: a reference to a SpaceEx.SpaceCenter.ReferenceFrame object

Remove the object.

Returns: :ok

Link to this function set_color(this, value)

Set the color

Returns: :ok

Link to this function set_material(this, value)

Material used to render the object.

Creates the material from a shader with the given name.

Returns: :ok

Link to this function set_reference_frame(this, value)

Reference frame for the positions of the object.

Returns: :ok

Link to this function set_thickness(this, value)

Set the thickness

Returns: :ok

Link to this function set_vertices(this, value)

Vertices for the polygon.

Returns: :ok

Link to this function set_visible(this, value)

Whether the object is visible.

Returns: :ok

Link to this function thickness(this)

Set the thickness

Returns: a low-precision decimal

Vertices for the polygon.

Returns: [{double, double, double}, ...], where double is a high precision decimal

Whether the object is visible.

Returns: true or false