#include <Polygon.h>
Inheritance diagram for Polygon:
Public Member Functions | |
Polygon (int n) | |
n vertices default constructor | |
Polygon (const Polygon &p) | |
copy constructor | |
int | n_vertices () const |
number of vertices accessor | |
Vector3 & | vertex (int index) const |
vertices accessor | |
void | dispose (int index) |
vertex disposal | |
virtual void | transform (const AffineTransform &t) |
transform operator | |
virtual void | homoxform (const PerspectiveTransform &t) |
projective space transformation | |
virtual Vector3 | normal () const |
normal vector operator | |
virtual Vector3 | centroid () |
centroid operator |
NOTE: it was decided to use STL map as the vertices array. NOTE: the function intersect was removed as it seems to be a triangle specific implementation.