You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
651 B

  1. /*
  2. * file polygons_defs.h
  3. * definitions to use boost::polygon in Kicad
  4. */
  5. #ifndef _POLYGONS_DEFS_H_
  6. #define _POLYGONS_DEFS_H_
  7. #ifdef USE_BOOST_POLYGON_LIBRARY
  8. #include "boost/polygon/polygon.hpp"
  9. // Define some types used here from boost::polygon
  10. namespace bpl = boost::polygon; // bpl = boost polygon library
  11. using namespace bpl::operators; // +, -, =, ...
  12. typedef int coordinate_type;
  13. typedef bpl::polygon_data<int> KPolygon;
  14. typedef std::vector<KPolygon> KPolygonSet;
  15. typedef bpl::point_data<int> KPolyPoint;
  16. #endif // USE_BOOST_POLYGON_LIBRARY
  17. #endif // #ifndef _POLYGONS_DEFS_H_