[vtkusers] vtkHardwareSelector Can't work with vtkUnstructuredGrid data?
Xianliang.Zeng
xjtuzxl at 163.com
Wed Nov 12 00:46:42 EST 2014
Thanks again.
I made a simple test code, and it's attached.
In the test, when moving the mouse, the point under the mouse should be selected, which annotated by a small red ball.
My test result is: sometime the selected point is not under the mouse, but appears elsewhere on the model.
Best regards,
Shane
At 2014-11-12 11:50:17, "David E DeMarle" <dave.demarle at kitware.com> wrote:
I haven't seen it fail in a long time so I can not say what is wrong.
In order for us to help you will have to provide a small sample of code so we can replicate the problem.
ParaView uses the same hardware selector, it just has extra layers of complexity on top because of its client/server parallel render windows. Thus there must be something different in the setup it does from what your program does.
hope that helps
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Tue, Nov 11, 2014 at 10:38 PM, Xianliang.Zeng <xjtuzxl at 163.com> wrote:
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/7856ca53/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TestHardwareSelector2.cpp
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141112/7856ca53/attachment-0001.ksh>
More information about the vtkusers
mailing list