home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / gfx / 3d / irit / include / bbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-21  |  1020 b   |  34 lines

  1. /******************************************************************************
  2. * Bbox.h - computes bounding boxes for objects.                      *
  3. *******************************************************************************
  4. * Written by Gershon Elber, June 1993.                          *
  5. ******************************************************************************/
  6.  
  7. #ifndef BBOX_H
  8. #define BBOX_H
  9.  
  10. #include "iritprsr.h"
  11. #include "cagd_lib.h"
  12.  
  13. typedef struct BBBboxStruct {
  14.     RealType Min[3];
  15.     RealType Max[3];
  16. } BBBboxStruct;
  17.  
  18. #if defined(__cplusplus) || defined(c_plusplus)
  19. extern "C" {
  20. #endif
  21.  
  22. BBBboxStruct *BBComputeBboxObject(IPObjectStruct *PObj);
  23. BBBboxStruct *BBComputeBboxObjectList(IPObjectStruct *PObj);
  24. BBBboxStruct *BBComputeOnePolyBbox(IPPolygonStruct *PPoly);
  25. BBBboxStruct *BBComputePolyListBbox(IPPolygonStruct *PPoly);
  26. BBBboxStruct *BBComputePointBbox(RealType *Pt);
  27. BBBboxStruct *BBMergeBbox(BBBboxStruct *Bbox1, BBBboxStruct *Bbox2);
  28.  
  29. #if defined(__cplusplus) || defined(c_plusplus)
  30. }
  31. #endif
  32.  
  33. #endif /* BBOX_H */
  34.