00001 #ifndef POLY_POLY_INTERSECT_H // -*- C++ -*-
00002 #define POLY_POLY_INTERSECT_H
00003
00004 #include <utility>
00005 #include "poly.h"
00006 #include "Box_3.h"
00007
00008
00009 class FacetBox : public Box_3
00010 {
00011 public:
00012 FacetBox( Polyhedron::Facet& f ) : Box_3(make_bounding_box(f))
00013 {
00014 facet = &f;
00015 }
00016
00017 Polyhedron::Facet& get_facet() const { return *facet; }
00018
00019 FacetBox() {};
00020
00021 private:
00022 Polyhedron::Facet* facet;
00023 };
00024
00025
00026 typedef std::pair<FacetBox,FacetBox> FacetBox_pair;
00027 typedef std::pair<Polyhedron::Facet,Polyhedron::Facet> Facet_pair;
00028 typedef std::pair<Facet_pair,CGAL::Object> Facet_pair_intersection;
00029
00030
00031
00033 template <class BoxPairOutIter>
00034 void poly_poly_intersect_box( Polyhedron& poly1,
00035 Polyhedron& poly2,
00036 BoxPairOutIter out );
00037
00038
00040 template <class FPI_OutIter>
00041 void poly_poly_intersect_facet( Polyhedron& poly1,
00042 Polyhedron& poly2,
00043 FPI_OutIter out );
00044
00045
00046 #include "poly_poly_intersect.C"
00047
00048 #endif
00049