Results 1 to 2 of 2

Thread: Envelope of two dataset

  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Envelope of two dataset

    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:
    Qt Code:
    1. QPOlygonF p1 << QPointF(1,1)<<QPointF(10,20)<<QPointF(20,5);
    2. QPolygon p2 << QPointF(5,10)<<QPointF(11,0);
    To copy to clipboard, switch view to plain text mode 
    The resutl should be the polygon
    QPoinF(1,1),QPointF(5,10),QPointF(10,20)<<QPointF( 20,5)
    Last edited by jpn; 8th January 2009 at 21:11. Reason: missing [code] tags

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Envelope of two dataset

    The Qt reference documentation is your number one source. Please read the docs before you post. See QPolygonF::united().
    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.