<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"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></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"><<a href="mailto:tonyzhang0985@gmail.com" target="_blank">tonyzhang0985@gmail.com</a>></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 "r" 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're seeing, and I agree that it is incorrect. A quick fix:<br><br>Change<br>
<br> vtkSmartPointer<vtkExtractPolyDataGeometry> extractPolyDataGeometry =<br> vtkSmartPointer<vtkExtractPolyDataGeometry>::New();<br><br>to<br><br> vtkSmartPointer<vtkExtractGeometry> extractPolyDataGeometry =<br>
vtkSmartPointer<vtkExtractGeometry>::New();<br><br clear="all"><div>and<br><br>#include <vtkExtractPolyDataGeometry.h><br><br>to<br><br>#include <vtkExtractGeometry.h><br><br>and it works as you'd expect. This seems to point to a bug in vtkExtractPolyDataGeometry, as I believe their calls are supposed to be the same. I'm not sure if I'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>