boostorg / boostorg/geometry

boost::geometry union & difference &r-tree error

未关闭
#653 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
517
派生
232
PR 合并指标
30 天内没有已合并 PR

描述

I want to "union" or "clipper" two rectangle but I always get the wrong output.
so I used "fsanitize=undefined" command to check my code, and it report a overflow error.
I think the all points of the tow rectangle in the integer range,so my question is if the points range
will be "long long" How do I define the type of point_xy to make sure it doesn't overflow when I used the function "union_" "difference" , and some time I used boost r-tree will also get the error.
![boost1](https://user-images.githubusercontent.com/50729390/57905892-afc1d500-78aa-11e9-86bf-bc84b302d215.PNG)
![boost2](https://user-images.githubusercontent.com/50729390/57905900-b2242f00-78aa-11e9-9952-10c69886083f.PNG)
![boost3](https://user-images.githubusercontent.com/50729390/57905902-b5b7b600-78aa-11e9-9d3c-3ecd414d2782.PNG)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。