<div dir="ltr">Thanks, David. It works after applying the change.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 11, 2013 at 8:01 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Tue, Dec 10, 2013 at 6:04 PM, tony zhang <span dir="ltr">&lt;<a href="mailto:tonyzhang0985@gmail.com" target="_blank">tonyzhang0985@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi,<br></div><div><br></div>I was playing the HighlightSelection example (available at <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Picking/HighlightSelection" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Picking/HighlightSelection</a>). After pressing &quot;r&quot; and using the HighlightInteractorStyle to do selection, seems always all vertexes (50 cells and 50 points) were selected and highlighted, no matter how I select an area. Is it the expected behavior or possible bug in the example or vtk? I am using vtk 6.1. Any hint or help will be greatly appreciated.<span><font color="#888888"><br>



<br></font></span></div><span><font color="#888888">Tony<br></font></span></div></blockquote></div></div><div><br>I can confirm the behavior you&#39;re seeing, and I agree that it is incorrect. A quick fix:<br><br>Change<br>


<br>        vtkSmartPointer&lt;vtkExtractPolyDataGeometry&gt; extractPolyDataGeometry =<br>          vtkSmartPointer&lt;vtkExtractPolyDataGeometry&gt;::New();<br><br>to<br><br>        vtkSmartPointer&lt;vtkExtractGeometry&gt; extractPolyDataGeometry =<br>


          vtkSmartPointer&lt;vtkExtractGeometry&gt;::New();<br><br clear="all"><div>and<br><br>#include &lt;vtkExtractPolyDataGeometry.h&gt;<br><br>to<br><br>#include &lt;vtkExtractGeometry.h&gt;<br><br>and it works as you&#39;d expect. This seems to point to a bug in vtkExtractPolyDataGeometry, as I believe their calls are supposed to be the same. I&#39;m not sure if I&#39;ll have a chance to dig into it.<span class="HOEnZb"><font color="#888888"><br>


<br>David</font></span></div></div></div></div></div>
</blockquote></div><br></div>