#include <VisMesh.hpp>
Public Member Functions | |
visPolygon () | |
void | addVertex (V3f vertex) |
void | clear () |
void | clip (vector< Plane3f > &clipPlanes, visPolygon *result) |
void | draw () |
visPolygon (const visPolygon &polygon) | |
Friends | |
class | Mesh |
class | MeshIterator |
visPolygon::visPolygon | ( | ) | [inline] |
Default constructor. Creates a Polygon without edges.
visPolygon::visPolygon | ( | const visPolygon & | polygon | ) |
Copy constructor.
void visPolygon::addVertex | ( | V3f | vertex | ) |
Add a vertex to the polygon. We don't test, if the polygon is planar. This will throw an exception after the 10th vertex.
void visPolygon::clear | ( | ) |
Empties a polygon.
void visPolygon::clip | ( | vector< Plane3f > & | clipPlanes, | |
visPolygon * | result | |||
) |
Clips the polygon.
clipPlanes | The clipping planes. | |
result | An empty Polygon. Clipped vertices will be added here. |
void visPolygon::draw | ( | ) |
Draws the Polygon with a call to glBegin(GL_POLYGON).