[vtkusers] selecting points
Boehm, Lukas
Lukas.Boehm at cellent.de
Mon Dec 19 08:05:59 EST 2011
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
-----Original Message-----
From: David Doria [mailto:daviddoria at gmail.com]
Sent: Montag, 19. Dezember 2011 13:54
To: Boehm, Lukas
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] selecting points
2011/12/19 Boehm, Lukas <Lukas.Boehm at cellent.de>:
> Hello,
>
>
>
> I am plotting some points via vtkPoints class. Now I want to select
> some points by defining a polygon. Every point which is inside the
> polygon, should be selected.
>
>
>
> My first step was to draw with every single click one point and
> connect the point with the last point. But now I found the area picker
> and it sounds like this is a built-in solution.
>
>
>
> Before I am investing more time in one of the solutions, my question
> is: Is the area picker the solution for this problem?
>
>
>
> Thank you very much!
>
> Lukas
According to the documentation AreaPicker uses a rectangular picking
region. Do you need a more general polygon?
David
-------------- 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