Shape::Polygon class reference
[Core module]
Declaration
#include <Goptical/Shape/Polygon>
namespace Goptical {
namespace Shape {
class Polygon;
};
};
This class is a member of the Shape namespace.
Inheritance
Description
This class implements the polygon shape.
Triangle tessellation required for proper 3d display only works with convex polygons yet.
See also RegularPolygon class.
Members
See also the full member list section for this class.
Inherited members
- 12 members inherited from Base
Functions
- Polygon()
- unsigned int add_vertex(const Math::Vector2 &v)
- void delete_vertex(unsigned int id)
- const Math::Vector2 & get_vertex(unsigned int id)
- unsigned int get_vertices_count() const
- void insert_vertex(const Math::Vector2 &v, unsigned int id)
Members detail
Create a polygon with given radius and edge count
unsigned int add_vertex(const Math::Vector2 &v)
No documentation available
No documentation available
const Math::Vector2 & get_vertex(unsigned int id)
No documentation available
No documentation available
void insert_vertex(const Math::Vector2 &v, unsigned int id)
No documentation available