<div dir="ltr">VTK won't render UnstructuredGrid (UG) directly (other than in volume rendering) either.<div><br></div><div>So, apply the vtkDataSetSurface (DSSF) filter to convert the outer skin of the UG data into a vtkPolyData and render+select that.</div><div><br></div><div>The PassThough*Ids methods on the DSSF are there to maintain the correspondence of input cells to output cells so that you can figure out what exactly was selected in the UG.</div><div><br></div><div>cheers<br><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Mon, Nov 10, 2014 at 12:48 AM, Xianliang.Zeng <span dir="ltr"><<a href="mailto:xjtuzxl@163.com" target="_blank">xjtuzxl@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello</div><div><br></div><div>I want to select cells in a vtkUnstructuredGrid data, and I created a vtkHardwareSelector for it. And then I found nothing can be selected.</div><div>By the way, I test the vtkHardwareSelector with a vtkPolyData, and it works well. </div><div>So, why <span style="line-height:23.7999992370605px">can't</span><span style="line-height:1.7"> vtkHardwareSelector select cells from vtkUnstructuredGrid? </span></div><div><span style="line-height:1.7"><br></span></div><div><span style="line-height:1.7">Best regards,</span></div><div><span style="line-height:1.7">Shane</span></div></div><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://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>