/* poly.h defines an external polygon representation used for calculating area and intersection area of polygons. Currently utilizes the boost-library. */ #ifndef _POLY_BOOST_H #define _POLY_BOOST_H #include "interpolate.h" #include #include #include #include #include class Face; typedef boost::geometry::model:: polygon > Polygon; class Poly { // external polygon protected: Polygon polygon; // a boost polygon public: Poly(Face& f, double offx, double offy, double scalex, double scaley, bool withholes); double Area(); // area of the polygon double IntersectionArea(Poly p); // intersection area of polygin with p }; #endif /* _POLY_BOOST_H */