proj home

Files   Classes   Functions   Hierarchy  

d2simplexFill Class Reference

Draw a filled triangle. More...

#include <d2simplexintersection.h>

Inheritance diagram for d2simplexFill:
Collaboration diagram for d2simplexFill:

List of all members.

Public Member Functions

 d2simplexFill (d2simplex &_s)
void draw ()
 Draw the object.


Detailed Description

Draw a filled triangle.

Definition at line 20 of file d2simplexintersection.h.


Constructor & Destructor Documentation

d2simplexFill::d2simplexFill ( d2simplex _s  ) 

Definition at line 67 of file d2simplexintersection.cpp.

00068   : s(_s)
00069 {
00070 }


Member Function Documentation

void d2simplexFill::draw (  )  [virtual]

Draw the object.

Implements gobj.

Definition at line 72 of file d2simplexintersection.cpp.

References d2simplex::v, point2< T >::x, and point2< T >::y.

00073 {
00074   glBegin(GL_TRIANGLES);
00075 
00076   glVertex3f(s.v[0].x,s.v[0].y,0.0);
00077   glVertex3f(s.v[1].x,s.v[1].y,0.0);
00078   glVertex3f(s.v[2].x,s.v[2].y,0.0);
00079 
00080   glVertex3f(s.v[2].x,s.v[2].y,0.0);
00081   glVertex3f(s.v[1].x,s.v[1].y,0.0);
00082   glVertex3f(s.v[0].x,s.v[0].y,0.0);
00083 
00084   glEnd();
00085 }


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

Generated on Fri Mar 4 00:49:53 2011 for Chelton Evans Source by  doxygen 1.5.8