[vtkusers] selecting points

Boehm, Lukas Lukas.Boehm at cellent.de
Wed Dec 21 03:33:39 EST 2011


Finally I made it with the polyline and and a polygon. The
PointInPolygon-function is very useful.

Thank you for your helpful answers :-)
Lukas

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

2011/12/19 Boehm, Lukas <Lukas.Boehm at cellent.de>:
> This solution is nearly perfect. There's only the problem that I do 
> not want the polygon to be filled. Because in a filled polygon the 
> user cannot see the selected points.
>
> How can I draw the polygon without filling it? I want to see only the 
> borders, so I can see the points within the polygon.
>
> Thank you for this solution!
> Lukas

I'd just use a vtkPolyLine instead of a vtkPolygon:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/PolyLine
-------------- 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