[vtkusers] selecting points

David Doria daviddoria at gmail.com
Mon Dec 19 08:45:07 EST 2011


2011/12/19 Boehm, Lukas <Lukas.Boehm at cellent.de>:
> No, a rectangular picking region is unfortunately not enough. The user
> really needs to define any polygon with n corners.
>
> Would you recommend to simply draw a polygon with corners at every
> single click position? When the user has finished this action, I could
> use some algorithms to find the points
> (http://en.wikipedia.org/wiki/Point_in_polygon).
>
> Or is there any other way to solve this problem?
>
> Thank you for your answer!
> Lukas

It sounds like you may be selecting 2D points (perhaps in the XY
plane) - is that the case?



More information about the vtkusers mailing list