Results 1 to 2 of 2

Thread: Selection by polygon

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2010
    Posts
    26

    Selection by polygon

    I'm trying to find a way to get the objects under given polygon.
    Which means, that the user will draw a polygon on the screen and i will give him all the drawn objects under this area.

    1. I know that we can use the picking method but this is for point or rectangle..
    2. I thought maybe, if there is a way to clip the viewing volume by given polygon, and then draw the scene in selection mode in the cut viewing volume.. but i couldn't find this clipping option.. if there is.

    Thanks.

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2010
    Posts
    26

    Re: Selection by polygon

    In addition,
    I know that intersection checks between the user polygon to all the others object is an option,
    but the drawing objects are complicated and changed every zoom, so i prefer to skip this calculation and if there is an option to use like the picking method for a given polygon i would be glad.

    Thanks again

Similar Threads

  1. motion of a triangle or polygon inside a polygon
    By Dathu in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-09-2008, 05:45 AM
  2. selection with a polygon region
    By vbovio in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 12-08-2006, 06:29 AM
  3. rendering polygon elements edge-on & polygon offset
    By rlskinner in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-19-2004, 08:43 AM
  4. Selection inside a non-rect polygon...
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-09-2003, 08:16 AM
  5. Is using selection buffer for selection or picking slow?
    By mohsin in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 04-11-2001, 03:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean