/******************************************************************************
* Bbox.h - computes bounding boxes for objects.				      *
*******************************************************************************
* Written by Gershon Elber, June 1993.					      *
******************************************************************************/

#ifndef BBOX_H
#define BBOX_H

#include "iritprsr.h"
#include "cagd_lib.h"

typedef struct BBBboxStruct {
    RealType Min[3];
    RealType Max[3];
} BBBboxStruct;

BBBboxStruct *BBComputeBboxObject(IPObjectStruct *PObj);
BBBboxStruct *BBComputeBboxObjectList(IPObjectStruct *PObj);
BBBboxStruct *BBComputeOnePolyBbox(IPPolygonStruct *PPoly);
BBBboxStruct *BBComputePolyListBbox(IPPolygonStruct *PPoly);
BBBboxStruct *BBComputePointBbox(RealType *Pt);
BBBboxStruct *BBMergeBbox(BBBboxStruct *Bbox1, BBBboxStruct *Bbox2);

#endif /* BBOX_H */
