Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

  1. #ifndef __glumesher_h_
  2. #define __glumesher_h_
  3. /**************************************************************************
  4. * *
  5. * Copyright (C) 1992, Silicon Graphics, Inc. *
  6. * *
  7. * These coded instructions, statements, and computer programs contain *
  8. * unpublished proprietary information of Silicon Graphics, Inc., and *
  9. * are protected by Federal copyright law. They may not be disclosed *
  10. * to third parties or copied or duplicated in any form, in whole or *
  11. * in part, without the prior written consent of Silicon Graphics, Inc. *
  12. * *
  13. **************************************************************************/
  14. /*
  15. * mesher.h - $Revision: 1.1 $
  16. */
  17. #include "hull.h"
  18. class TrimRegion;
  19. class Backend;
  20. class Pool;
  21. class GridTrimVertex;
  22. class Mesher : public Hull {
  23. public:
  24. Mesher( Backend & );
  25. ~Mesher( void );
  26. void init( unsigned int );
  27. void mesh( void );
  28. private:
  29. static const float ZERO;
  30. Backend& backend;
  31. Pool p;
  32. unsigned int stacksize;
  33. GridTrimVertex ** vdata;
  34. GridTrimVertex * last[2];
  35. int itop;
  36. int lastedge;
  37. inline void openMesh( void );
  38. inline void swapMesh( void );
  39. inline void closeMesh( void );
  40. inline int isCcw( int );
  41. inline int isCw( int );
  42. inline void clearStack( void );
  43. inline void push( GridTrimVertex * );
  44. inline void pop( long );
  45. inline void move( int, int );
  46. inline int equal( int, int );
  47. inline void copy( int, int );
  48. inline void output( int );
  49. void addUpper( void );
  50. void addLower( void );
  51. void addLast( void );
  52. void finishUpper( GridTrimVertex * );
  53. void finishLower( GridTrimVertex * );
  54. };
  55. #endif /* __glumesher_h_ */