proj home

Files   Classes   Functions   Hierarchy  

writebaseobj Class Reference

#include <d4tessdraw.h>

Inheritance diagram for writebaseobj:
Collaboration diagram for writebaseobj:

List of all members.

Public Member Functions

 writebaseobj (d4tess const &_tess)
void draw () const


Detailed Description

Definition at line 127 of file d4tessdraw.h.


Constructor & Destructor Documentation

writebaseobj::writebaseobj ( d4tess const &  _tess  )  [inline]

Definition at line 132 of file d4tessdraw.h.

00133     : tess(_tess) {}


Member Function Documentation

void writebaseobj::draw (  )  const

Definition at line 359 of file d4tessdraw.cpp.

References tetrahedrondraw< T, D >::displaybase(), d4tri::isnull(), d4tri::pi, d4tess::pt, and d4tess::vi.

00360 {
00361   //glPushAttrib(GL_CURRENT_BIT);
00362   //glPushAttrib(GL_LIGHTING_BIT);
00363 
00364   //glBegin(GL_LINES);
00365 
00366   uintc imax = tess.vi.size();
00367   for (uint i=1; i<imax; ++i)
00368   {
00369     d4tri const & t(tess.vi[i]);
00370 
00371     if (t.isnull())
00372       continue;
00373 
00374     pt4c & P0(tess.pt[t.pi[0]]); 
00375     pt4c & P1(tess.pt[t.pi[1]]); 
00376     pt4c & P2(tess.pt[t.pi[2]]); 
00377     pt4c & P3(tess.pt[t.pi[3]]); 
00378 
00379     tetrahedrondraw<double> td(P0,P1,P2,P3);
00380     td.displaybase();
00381   }
00382 
00383   //glEnd();
00384 
00385   //glPopAttrib();
00386   //glPopAttrib();
00387 }


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

Generated on Fri Mar 4 00:50:25 2011 for Chelton Evans Source by  doxygen 1.5.8