Main Page | File List

BBox.h

Go to the documentation of this file.
00001 /**
00002  *\file         BBox.h
00003  *
00004  *\brief        An axis aligned bounding box.
00005  *
00006  *\author       Xianming Chen
00007  *
00008  *\date         12 Jul 2004
00009  */
00010 
00011 
00012 #ifndef _BBOX_H
00013 #define _BBOX_H
00014 
00015 #include "Point.h"
00016 
00017 
00018 namespace columbia
00019 {
00020   struct TriangleMesh ;
00021   
00022   struct BBox
00023   {
00024       Point min, max, center;
00025       BBox() { };
00026       
00027       BBox(TriangleMesh const&);
00028   } ;
00029 
00030   inline ostream& operator<<(ostream& os, BBox const& bbox)
00031   {
00032     return os << bbox.min << endl << bbox.max << endl;
00033   }
00034   
00035 }//end namespace xchen
00036 
00037 
00038 #endif

Generated on Sun Jul 18 20:32:35 2004 by doxygen 1.3.6