16 namespace bg = boost::geometry;
17 std::cout <<
"Boost version:" << BOOST_VERSION <<
'\n';
18 std::cout <<
"Boost lib version:" << BOOST_LIB_VERSION <<
'\n';
20 using point_t1 = bg::model::point<double, 2, bg::cs::cartesian>;
21 using point_t2 = bg::model::d2::point_xy<double>;
24 using cpolygon_t1 = bg::model::polygon<point_t1,true,true>;
25 using opolygon_t1 = bg::model::polygon<point_t1,true,false>;
27 cpolygon_t1 cpoly1{{ {0.0, 0.0}, {0.0, 5.0}, {5.0, 5.0}, {5.0, 0.0}, {0.0, 0.0} }};
28 opolygon_t1 opoly1{{ {0.0, 0.0}, {0.0, 5.0}, {5.0, 5.0}, {5.0, 0.0} }};
33 std::cout <<
"p1a=" << p1a <<
"p1b=" << p1b <<
'\n';
35 using cpolygon_t2 = bg::model::polygon<point_t2,true,true>;
36 using opolygon_t2 = bg::model::polygon<point_t2,true,false>;
38 cpolygon_t2 cpoly2{{ {0.0, 0.0}, {0.0, 5.0}, {5.0, 5.0}, {5.0, 0.0}, {0.0, 0.0} }};
39 opolygon_t2 opoly2{{ {0.0, 0.0}, {0.0, 5.0}, {5.0, 5.0}, {5.0, 0.0} }};
43 std::cout <<
"p2a=" << p2a <<
"p2b=" << p2b <<
'\n';
49 std::cout <<
"p1=" << p1 <<
" p2=" << p2 <<
'\n';
53 std::cout <<
"p1=" << p1 <<
" p2=" << p2 <<
'\n';
59 point_t1 bpt1a = p1.getPt<point_t1>();
60 point_t1 bpt1b = h2d::getPt<point_t1>(p2);
Polyline, will be instanciated either as OPolyline_ (open polyline) or CPolyline_.
Definition: homog2d.hpp:364
Base class, will be instanciated as Point2d_ or Line2d_.
Definition: homog2d.hpp:365