[vtkusers] vtkHardwareSelector Can't work with vtkUnstructuredGrid data?

Xianliang.Zeng xjtuzxl at 163.com
Tue Nov 11 22:38:53 EST 2014


Thanks very much.


vtkHardwareSelector seems to select point sometimes wrong, but it works very well with cell.
Why doesn't paraview have such problem about selecting points?



At 2014-11-10 23:58:24, "David E DeMarle" <dave.demarle at kitware.com> wrote:

VTK won't render UnstructuredGrid (UG) directly (other than in volume rendering) either.


So, apply the vtkDataSetSurface (DSSF) filter to convert the outer skin of the UG data into a vtkPolyData and render+select that.


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.


cheers





David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Mon, Nov 10, 2014 at 12:48 AM, Xianliang.Zeng <xjtuzxl at 163.com> wrote:

Hello


I want to select cells in a vtkUnstructuredGrid data, and I created a vtkHardwareSelector for it. And then I found nothing can be selected.
By the way, I test the vtkHardwareSelector with a vtkPolyData, and it works well. 
So, why can't vtkHardwareSelector select cells from vtkUnstructuredGrid? 


Best regards,
Shane

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141112/7b637f74/attachment.html>


More information about the vtkusers mailing list