That feature request comes up pretty often but I don't think anyone has implemented it in VTK yet. My advice is that one could do it one of two ways:<div>1) add code to vtkHardwareSelector to add a mask over the rectangular selected pixel array where the class reads the rendered pixels to determine what was hit.</div>
<div>2) Render the included shape into the stencil buffer and enable stencil tests before the hardware selector does its identity render passes.<div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>
28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Sun, Mar 20, 2011 at 4:01 PM, Luca Penasa <span dir="ltr"><<a href="mailto:luca.penasa@gmail.com">luca.penasa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Does anybody know if there is a simple way to select points inside a<br>
free-hand drawed polygon?<br>
I mean to draw a polygon on the screen and obtaining points that should<br>
be considered as "internal points"??<br>
<br>
<br>
thank you!<br>
<br>
<br>
<br>
--<br>
---------------------------<br>
Luca Penasa<br>
Student at Geosciences Dpt.<br>
University of Padua (IT)<br>
<a href="mailto:luca.penasa@email.it">luca.penasa@email.it</a><br>
---------------------------<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div>