25 #ifndef CGAL_OPT_BBOX_3_H
26 #define CGAL_OPT_BBOX_3_H
28 #include <CGAL/basic.h>
41 Bbox_3(
double x_min,
double y_min,
double z_min,
42 double x_max,
double y_max,
double z_max) {
47 template <
class Po
int3>
108 #ifndef NO_OSTREAM_INSERT_BBOX_3
116 return os << b.
xmin() <<
' ' << b.
ymin() <<
' ' << b.
zmin() <<
' '
127 os <<
"Bbox_3((" << b.
xmin()
129 <<
", " << b.
zmin() <<
"), (";
132 <<
", " << b.
zmax() <<
"))";
136 #endif // NO_OSTREAM_INSERT_BBOX_3
140 #ifndef NO_ISTREAM_EXTRACT_BBOX_3
145 double xmin, ymin, zmin, xmax, ymax, zmax;
150 is >> xmin >> ymin >> zmin >> xmax >> ymax >> zmax ;
161 b =
Bbox_3(xmin, ymin, zmin, xmax, ymax, zmax);
165 #endif // NO_ISTREAM_EXTRACT_BBOX_3
198 template <
class InIter>
202 while (first != last) {
203 box += first->bbox();
211 #endif // CGAL_OPT_BBOX_3_H
Bbox_3 get_Bbox_3(InIter first, InIter last)
Bbox_3 & operator+=(const Bbox_3 &b)
bool do_overlap_strict(const Bbox_2 &bb1, const Bbox_2 &bb2)
Bbox_3(double x_min, double y_min, double z_min, double x_max, double y_max, double z_max)
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
void write(std::ostream &os, const T &t, const io_Read_write &)
bool do_match(const Bbox_3 &bb, double tol) const
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
bool do_overlap(const Bbox_2 &bb1, const Bbox_2 &bb2)
void read(std::istream &is, T &t, const io_Read_write &)
#define CGAL_BEGIN_NAMESPACE
#define CGAL_OPT_END_NAMESPACE
bool do_overlap_eps(const Bbox_2 &bb1, const Bbox_2 &bb2, const double eps)
std::ostream & operator<<(std::ostream &os, const COM_exception &ex)
Print out a given exception.
#define CGAL_END_NAMESPACE
#define CGAL_OPT_BEGIN_NAMESPACE
Bbox_3 operator+(const Bbox_3 &b) const