00001 #include "poly_intersect.h"
00002
00003
00004 bool
00005 do_intersect_positive( const Polyhedron::Facet& facet,
00006 const CGAL::Plane_3<Exact_rep>& plane )
00007 {
00008 Polyhedron::Halfedge_const_handle begin = facet.halfedge();
00009 Polyhedron::Halfedge_const_handle h = begin;
00010
00011 #if DEBUGGING
00012 cout << "do_intersect_positive( plane = " << plane << endl
00013 << facet << endl;
00014 #endif
00015
00016 do {
00017 CGAL::Oriented_side os = plane.oriented_side( h->vertex()->point() );
00018 #if DEBUGGING
00019 cout << "Point: " << h->vertex()->point() << ": " << os << endl;
00020 #endif
00021
00022 if ( os == CGAL::ON_POSITIVE_SIDE )
00023 return true;
00024 h = h->next();
00025 } while ( h != begin );
00026
00027 return false;
00028 }
00029
00030