boostorg / polygon

Boost.org polygon module
http://boost.org/libs/polygon
57 stars 70 forks source link

Intersection of polygons with double coordinate type doesn't work #71

Open theoldestsc opened 3 years ago

theoldestsc commented 3 years ago

https://godbolt.org/z/v7exo37sP - this is an example of intersection custom polygons with a double data type. https://godbolt.org/z/9n8We6eqb - example with your polygons

You can see that if i change coordinate type to double i can't get any intersections

mpnunez commented 2 years ago

Coordinate types need to be integral, not float: https://www.boost.org/doc/libs/1_79_0/libs/polygon/doc/gtl_coordinate_concept.htm.