[vtkusers] selecting points

Boehm, Lukas Lukas.Boehm at cellent.de
Mon Dec 19 08:46:07 EST 2011


Correct, this is the case.

Thank you!

-----Original Message-----
From: David Doria [mailto:daviddoria at gmail.com] 
Sent: Montag, 19. Dezember 2011 14:45
To: Boehm, Lukas
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] selecting points

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?
-------------- next part --------------
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cellent Aktiengesellschaft
Vorsitzender des Aufsichtsrates: Rudolf Zipf
Vertretungsberechtigter Vorstand: Andreas Schwegler
Gerichtsstand: Amtsgericht Stuttgart, HRB 22791
Umsatzsteuer-ID: DE 226611517
Firmensitz: Stuttgart

Diese EMail sowie etwaige Anlagen sind ausschliesslich fuer den Adressaten bestimmt und koennen vertrauliche oder gesetzlich
geschuetzte Informationen enthalten. Wenn Sie nicht der bestimmungsgemaesse Empfaenger sind, unterrichten Sie bitte den Absender 
und vernichten Sie diese Mail. Anderen als dem bestimmungsgemaessen Adressaten ist es untersagt, diese EMail zu speichern, 
weiterzuleiten oder ihren Inhalt, auf welche Weise auch immer, zu verwenden. Wir verwenden aktuelle Virenschutzprogramme. 
Fuer Sch?den, die dem Empfaenger gleichwohl durch von uns zugesandte, mit Viren befallene EMails entstehen, schliessen wir jede Haftung aus.

The information contained in this e-mail or attachments is intended only for its addressee and may contain confidential and/or 
privileged information. If you have received this e-mail in error, please notify the sender and delete the e-mail. If you are not the 
intended recipient, you are hereby notified, that saving, distribution or use of the content of this e-mail in any way is prohibited. 
We use updated virus protection software. We do not accept any responsibility for damages caused anyhow by viruses transmitted via e-mail.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


More information about the vtkusers mailing list