proj home

Files   Classes   Functions   Hierarchy  

tessD2misc< TESS, PT, INDX > Class Template Reference

Miscellaneous operations on 2D tessellation. More...

#include <tessD2misc.h>

Collaboration diagram for tessD2misc< TESS, PT, INDX >:

List of all members.

Public Member Functions

 tessD2misc (TESS &tess_)
void windinganticlockwise ()
 Convert the tessellation to anticlockwise winding.
void windingclockwise ()
 Convert the tessellation to clockwise winding.


Detailed Description

template<typename TESS, typename PT, typename INDX>
class tessD2misc< TESS, PT, INDX >

Miscellaneous operations on 2D tessellation.

Definition at line 8 of file tessD2misc.h.


Constructor & Destructor Documentation

template<typename TESS , typename PT , typename INDX >
tessD2misc< TESS, PT, INDX >::tessD2misc ( TESS &  tess_  )  [inline]

Definition at line 13 of file tessD2misc.h.

00014     : tess(tess_) {}


Member Function Documentation

template<typename TESS , typename PT , typename INDX >
void tessD2misc< TESS, PT, INDX >::windinganticlockwise (  )  [inline]

Convert the tessellation to anticlockwise winding.

Definition at line 60 of file tessD2misc.h.

References tessD2misc< TESS, PT, INDX >::windingclockwise().

00061 {
00062   windingclockwise();
00063 
00064   INDX sz = tess.vi.size();
00065   for (INDX i=1; i<sz; ++i)
00066   {
00067     INDX k=tess.vi[i].pi[1];
00068     tess.vi[i].pi[1] = tess.vi[i].pi[2];
00069     tess.vi[i].pi[2] = k;
00070   }
00071 }

template<typename TESS , typename PT , typename INDX >
void tessD2misc< TESS, PT, INDX >::windingclockwise (  )  [inline]

Convert the tessellation to clockwise winding.

Definition at line 52 of file tessD2misc.h.

Referenced by tessD2misc< TESS, PT, INDX >::windinganticlockwise().

00053 {
00054   INDX sz = tess.vi.size();
00055   for (INDX i=1; i<sz; ++i)
00056     windingclockwisetriangle(tess.vi[i]);
00057 }


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

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