boostorg / boostorg/geometry

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

Aperta
#653 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
517
Fork
232
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.