Polygon Class Reference

Definition of class Polygon. More...

#include <Polygon.h>

Inheritance diagram for Polygon:

Mesh Triangle TriMesh

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

Detailed Description

Definition of class Polygon.

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.


The documentation for this class was generated from the following files:
Generated on Thu Jul 5 00:16:33 2007 for S3D by  doxygen 1.4.6