00001 #ifndef HEXA_POLY_INTERSECT_H // -*- C++ -*-
00002 #define HEXA_POLY_INTERSECT_H
00003
00004 #include "Hexahedron_3.h"
00005 #include "poly.h"
00006
00007
00009 bool
00010 is_inside( const Polyhedron::Facet& facet,
00011 const Hexahedron_3& hexa );
00012
00013
00014
00024
00025
00027 int
00028 slice_poly_with_hexa( Polyhedron& poly,
00029 Polyhedron::Facet& facet,
00030 const Hexahedron_3& hexa );
00031
00032
00034 template <typename Facet_out_iterator>
00035 int
00036 slice_poly_with_hexa( Polyhedron& poly,
00037 Polyhedron::Facet& facet,
00038 const Hexahedron_3& hexa,
00039 Facet_out_iterator facets_out );
00040
00041
00043 template <typename Hexahedron_input_iterator,
00044 typename Facet_out_iterator>
00045 int
00046 slice_poly_with_hexa( Polyhedron& poly,
00047 Polyhedron::Facet& facet,
00048 Hexahedron_input_iterator hexa_begin,
00049 Hexahedron_input_iterator hexa_end,
00050 Facet_out_iterator facets_out );
00051
00052
00054 int
00055 label_poly_with_hexa( Polyhedron& poly,
00056 Polyhedron::Facet& facet,
00057 const Hexahedron_3& hexa,
00058 int label );
00059
00060
00061
00062
00063
00065 template <class Facet_input_iterator>
00066 int
00067 slice_poly_with_hexa( Polyhedron& poly,
00068 Facet_input_iterator begin,
00069 Facet_input_iterator end,
00070 const Hexahedron_3& hexa );
00071
00072
00074 template <typename Facet_input_iterator,
00075 typename Facet_output_iterator>
00076 int
00077 slice_poly_with_hexa( Polyhedron& poly,
00078 Facet_input_iterator begin,
00079 Facet_input_iterator end,
00080 const Hexahedron_3& hexa,
00081 Facet_output_iterator facets_out );
00082
00083
00084
00085
00087 void
00088 slice_poly_with_hexa( Polyhedron& poly,
00089 const Hexahedron_3& hexa );
00090
00091
00092
00093
00094 #include "hexa_poly_intersect.C"
00095
00096
00097 #endif
00098