Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

poly_intersect.cc

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         //if ( plane.oriented_side( convert_to_exact(h->vertex()->point())) 
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 

Generated on Fri Oct 26 23:38:11 2001 for bicobj-intersection by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001