Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
-
Using windows 10 and QtCreator 12.0.1
Description
Hi !
When I try to intersect those 2 polygons:
QPolygonF poly1; QPolygonF poly2; poly1.append(QPointF(72.80599977946001, -20.0)); poly1.append(QPointF(79.4595245353603, -20.0)); poly1.append(QPointF(175.0, -20.0)); poly1.append(QPointF(175.0, 20.0)); poly1.append(QPointF(85.83632192403258, 20.0)); poly1.append(QPointF(72.80599977946001, -20.0)); poly2.append(QPointF(138.90690452319478, -20.0)); poly2.append(QPointF(132.25337970676924, -19.999999999999996)); poly2.append(QPointF(-175.0, -19.999999999999996)); poly2.append(QPointF(-175.0, 20.0)); poly2.append(QPointF(0.0, 20.0)); poly2.append(QPointF(125.87658237835221, 20.0)); poly2.append(QPointF(138.90690452319478, -20.0));
It returns this:
Blue: poly1
Red: poly2
Yellow: intersected polygon
We can clearly see that the intesected polygon is not the polygon expected