[vtkusers] How to pick points that falls inside a polygon?

Jim Peterson jimcp at cox.net
Wed Sep 1 15:53:56 EDT 2010


How are you proving that the unselected points should be within the 
polygon? how many points are you using to define the selection polygon?

It sounds like you want some descendant from vtk3dWidget 
http://www.vtk.org/doc/nightly/html/classvtk3DWidget.html maybe 
vtkSplineWidget to create the selection polygon.

Rakesh Patil wrote:
> hi
>
> i tried using that.. sometimes all points get selected.. and sometimes 
> few..
> not all points get selected..
>
> any other method is available..??
>
> thanks
>
>
>     ---------- Original message ----------
>     From:"Jothy"< jothybasu at gmail.com >
>     Date: 31 Aug 10 14:21:20
>     Subject: Re: [vtkusers] How to pick points that falls inside a
>     polygon?
>     To: Rakesh Patil <rakeshthp at in.com>
>     Cc: VTK Mailing List <vtkusers at vtk.org>
>
>     Try vtkPolygon->PointInPolygon
>
>     Jothy
>
>     On Tue, Aug 31, 2010 at 6:27 AM, Rakesh Patil <rakeshthp at in.com
>     <mailto:rakeshthp at in.com>> wrote:
>
>         Hello,
>
>         I want to select and pick all the points that falls inside a
>         polygon. Polygon is defined by user using mouse clicks..
>         Thus, i wanted to know is there any interactor style similar
>         to rubberband pick to do this.??
>         Or do i have to do it on my own..??
>
>         If i have to do it on my own, can any one guide me how to
>         progress..??
>
>         Thanks
>         Regards
>         Rakesh Patil
>
>         Dear *VTK Mailing List !* Get Yourself a cool, short *@in.com*
>         Email ID now!
>         <http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing>
>         Report spam
>         <http://www.in.com/report_spam.php?i=72616b65736874687040696e2e636f6d7c7c61333038306333643034306264656137633330633766643638633536616336343639623264356266>
>
>         _______________________________________________
>         Powered by www.kitware.com <http://www.kitware.com>
>
>         Visit other Kitware open-source projects at
>         http://www.kitware.com/opensource/opensource.html
>
>         Please keep messages on-topic and check the VTK FAQ at:
>         http://www.vtk.org/Wiki/VTK_FAQ
>
>         Follow this link to subscribe/unsubscribe:
>         http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
> Get Yourself a cool, short *@in.com* Email ID now! 
> <http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing>
> Report spam 
> <http://www.in.com/report_spam.php?i=72616b65736874687040696e2e636f6d7c7c33333430396162373038626131636131383431666234663431626334386439383435323035396538>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   




More information about the vtkusers mailing list