visPolygon Class Reference

#include <VisMesh.hpp>

List of all members.

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


Detailed Description

A polygon class, used for software clipping.

Constructor & Destructor Documentation

visPolygon::visPolygon (  )  [inline]

Default constructor. Creates a Polygon without edges.

visPolygon::visPolygon ( const visPolygon polygon  ) 

Copy constructor.


Member Function Documentation

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.

Parameters:
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).


The documentation for this class was generated from the following files:

Generated on Wed Dec 10 14:41:01 2008 by  doxygen 1.5.7.1