Thread: User interface problem -- check a point is inside a polygon or not

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    User interface problem -- check a point is inside a polygon or not

    Hello everyone,


    I have a UI application and I need to display context menu according to whether user clicks inside a polygon or not. So, I think I need to use some algorithms which can check whether a point is inside a polygon.

    Does anyone have any ideas or reference materials?


    thanks in advance,
    George

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Something tells me you didn't search for anything on the topic.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Hi quzah,


    Quote Originally Posted by quzah
    Something tells me you didn't search for anything on the topic.


    Quzah.
    I have searched but have not found anything useful. I searched "point inside polygon algorithm". Could you help please?


    regards,
    George

  4. #4
    Awesomefaceradcore bivhitscar's Avatar
    Join Date
    Apr 2006
    Location
    Melbourne, Australia
    Posts
    210
    Psst, he gave you the link.
    it's ironic considerate rarity patron of love higher knowledge engulfs me...

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > I have searched but have not found anything useful. I searched "point inside polygon algorithm". Could you help please?
    Give up trying to be a programmer would be my suggestion.
    If you can't click on a link, scroll down to where the source code is listed, and use it, then there really is no help for you.

    If you want better help, then your question needs to be a hell of a lot more specific than it is at the moment.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by George2
    Hi quzah,

    I have searched but have not found anything useful. I searched "point inside polygon algorithm". Could you help please?


    regards,
    George
    Well George, you're either stupid, or a liar. Here is one search engine's results for your exact keywords. Here is another search engine's.

    Also, there's been at least one other thread in recent memory on this very forum, for the same concept / topic.

    You need to learn how to make an effort. You do know that you're allowed to try more than one combination or variation of keywords in a search engine. Search engine's aren't like parachuting. If you ........ up, you can try again.


    Quzah.
    Hope is the first step on the road to disappointment.

  7. #7
    Awesomefaceradcore bivhitscar's Avatar
    Join Date
    Apr 2006
    Location
    Melbourne, Australia
    Posts
    210
    >You do know that you're allowed to try more than one combination or variation of keywords in a search engine.

    Really, I thought they just knew what I was talking about?
    it's ironic considerate rarity patron of love higher knowledge engulfs me...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. allegro issues
    By mramazing in forum C++ Programming
    Replies: 1
    Last Post: 01-07-2009, 11:56 PM
  2. For the numerical recipes in C types!
    By Smattacus in forum C Programming
    Replies: 5
    Last Post: 10-28-2008, 07:57 PM
  3. How accurate is the following...
    By emeyer in forum C Programming
    Replies: 22
    Last Post: 12-07-2005, 12:07 PM
  4. Creating a User Friendly Interface.
    By jeeva in forum Linux Programming
    Replies: 5
    Last Post: 12-07-2001, 03:14 AM
  5. more with my 1st structure program
    By sballew in forum C Programming
    Replies: 42
    Last Post: 10-22-2001, 08:03 PM