Results 1 to 3 of 3

Thread: Point in a Polygon

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Point in a Polygon

    Hello All,

    I would like to check if a point is located inside a polygon or not ?

    so I'm using

    bool QPolygon::containsPoint ( const QPoint & point, Qt::FillRule fillRule ) const

    but this method will ignore points that are located on the line of the polygon, so is there a way to include them ??

    Thanks
    Last edited by jesse_mark; 15th July 2013 at 20:04.

Similar Threads

  1. Points in Polygon
    By jesse_mark in forum Qt Programming
    Replies: 2
    Last Post: 27th September 2012, 20:58
  2. Replies: 13
    Last Post: 25th January 2012, 05:52
  3. Draw polygon in QML
    By tuxit in forum Qt Quick
    Replies: 0
    Last Post: 27th July 2011, 15:13
  4. pixmap to polygon
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2009, 09:02
  5. Rotating the polygon
    By navi1084 in forum Qt Programming
    Replies: 1
    Last Post: 4th September 2008, 00:41

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
  •  
Qt is a trademark of The Qt Company.