boost_geometry_correct
boost_geometry_correct copied to clipboard
Advanced correct for boost geometry polygons
Hi, Wouldn't it be interesting to have "correct" inside the main library instead of having to find that it exists ? The functionnality seems interesting enough to me.
WHen I try to compile, correct.hpp is not deducing my custom boost geometry types. ( I register OpenCV points as my point type via BOOST_GEOMETRY_REGISTER_POINT_2D and use polygons that like...
modify like this is ok : if ((boost::geometry::comparable_distance(ring[i], ring.back()) - 0.0 < 1e-22)) {
when i use the hpp in boost 1.72,it compling failed. can you give me a suggestion about it. thank you very much
On implementation in a VS project a compilation error is thrown, any suggestions? **Code** ``` #include #include typedef boost::geometry::model::d2::point_xy point; typedef boost::geometry::model::polygon polygon; typedef boost::geometry::model::multi_polygon multi_polygon; void CRegion::CorrectPolyline(PolylineClass myPolyLine) {...
Import relevant test cases from boost geometry test: https://github.com/boostorg/geometry/blob/develop/test/algorithms/is_valid.cpp