Polygon#
-
class Polygon#
A polygon. Created using
add_polygon().-
std::vector<std::tuple<double, double, double>> vertices()#
-
void set_vertices(std::vector<std::tuple<double, double, double>> value)#
Vertices for the polygon.
- Game Scenes:
Flight
-
SpaceCenter::ReferenceFrame reference_frame()#
-
void set_reference_frame(SpaceCenter::ReferenceFrame value)#
Reference frame for the positions of the object.
- Game Scenes:
Flight
-
bool visible()#
-
void set_visible(bool value)#
Whether the object is visible.
- Game Scenes:
Flight
-
void remove()#
Remove the object.
- Game Scenes:
Flight
-
std::tuple<double, double, double> color()#
-
void set_color(std::tuple<double, double, double> value)#
Set the color
- Game Scenes:
Flight
-
std::string material()#
-
void set_material(std::string value)#
Material used to render the object. Creates the material from a shader with the given name.
- Game Scenes:
Flight
-
float thickness()#
-
void set_thickness(float value)#
Set the thickness
- Game Scenes:
Flight
-
std::vector<std::tuple<double, double, double>> vertices()#