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

Polyhedron_Box_3.cc

00001 #include "Polyhedron_Box_3.h"
00002 #include "Polyhedron_Interval.h"
00003 
00004 
00008 Polyhedron::Facet*
00009 cutting( Polyhedron& poly,
00010          Polyhedron::Facet& facet,
00011          const Box_3& box )
00012 {
00013     FacetTriple ft = cutting( poly, facet, 0, box.min(0),box.max(0) );
00014 
00015     if ( ft.middle == 0 )
00016         return 0;
00017 
00018     ft = cutting( poly, *ft.middle, 1, box.min(1),box.max(1) );
00019 
00020     if ( ft.middle == 0 )
00021         return 0;
00022 
00023     ft = cutting( poly, *ft.middle, 2, box.min(2),box.max(2) );
00024 
00025     return ft.middle;
00026 }

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