home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / sharewar / quake106 / utils / common / polylib.h < prev    next >
Text File  |  1996-09-12  |  676b  |  23 lines

  1.  
  2. typedef struct
  3. {
  4.     int        numpoints;
  5.     vec3_t    p[4];        // variable sized
  6. } winding_t;
  7.  
  8. #define    MAX_POINTS_ON_WINDING    64
  9.  
  10. #define    ON_EPSILON    0.1
  11.  
  12. winding_t    *AllocWinding (int points);
  13. vec_t    WindingArea (winding_t *w);
  14. void    WindingCenter (winding_t *w, vec3_t center);
  15. void    ClipWinding (winding_t *in, vec3_t normal, vec_t dist,
  16.                      winding_t **front, winding_t **back);
  17. winding_t    *ChopWinding (winding_t *in, vec3_t normal, vec_t dist);
  18. winding_t    *CopyWinding (winding_t *w);
  19. winding_t    *BaseWindingForPlane (vec3_t normal, float dist);
  20. void    CheckWinding (winding_t *w);
  21. void    WindingPlane (winding_t *w, vec3_t normal, vec_t *dist);
  22. void    RemoveColinearPoints (winding_t *w);
  23.