PDA

View Full Version : Envelope of two dataset



giusepped
7th January 2009, 12:03
I have a math question.
I have two QPolygonF, wiht different size.
I would build a new QPolygonF composed of the envolope of the two polygons.
For example:

QPOlygonF p1 << QPointF(1,1)<<QPointF(10,20)<<QPointF(20,5);
QPolygon p2 << QPointF(5,10)<<QPointF(11,0);

The resutl should be the polygon
QPoinF(1,1),QPointF(5,10),QPointF(10,20)<<QPointF(20,5)

jpn
8th January 2009, 21:10
The Qt reference documentation is your number one source. Please read the docs before you post. See QPolygonF::united().