Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

node/polygon.cpp

Go to the documentation of this file.
00001 #include "polygon.h"
00002 
00007 #if 0
00008 
00009 using namespace std;
00010 
00012 
00013 GltPolygon::GltPolygon()
00014 {
00015 }
00016 
00017 GltPolygon::~GltPolygon()
00018 {
00019 }
00020 
00021 void 
00022 GltPolygon::draw() const
00023 {
00024     glPushMatrix();
00025         transformation().glMultMatrix();
00026 
00027 //      for (int i=0; i<size(); i++)
00028 //          if ((*this)[i].get())
00029 //              (*this)[i]->draw();
00030 
00031     glPopMatrix();
00032 }
00033 
00034 bool 
00035 GltPolygon::boundingBox(Vector &min,Vector &max) const
00036 {
00037 /*
00038     bool firstBox = true;
00039 
00040     for (int i=0; i<size(); i++)
00041         if ((*this)[i].get())
00042         {
00043             Vector tmin,tmax;
00044 
00045             if (!(*this)[i]->boundingBox(tmin,tmax))
00046                 return false;
00047             else
00048             {
00049                 if (firstBox)
00050                 {
00051                     min = tmin;
00052                     max = tmax;
00053                     firstBox = false;
00054                 }
00055                 else
00056                 {
00057                     min.vmin(tmin);
00058                     max.vmax(tmax);
00059                 }
00060             
00061             }
00062         }
00063 
00064     return !firstBox;
00065 */
00066     return false;
00067 }
00068 
00069 string GltPolygon::description() const
00070 {
00071     char buffer[1024];
00072     sprintf(buffer,"Convex polygon.");
00073     return buffer;
00074 }
00075 
00076 #endif

Generated on Tue Nov 5 11:11:05 2002 for GLT by doxygen1.2.18