[vtkusers] picking problem
Dominik Szczerba
dominik at itis.ethz.ch
Mon Aug 3 10:36:29 EDT 2009
Sounds a little like your input dataset gets processed and your original
IDs are lost (picking points on a cut plane through a 3D dataset will
not give you original IDs). One way to consider is to keep the original
IDs as a (int) scalar field.
- Dominik
Greg Book wrote:
> I'm creating an application in which the user picks points on a
> vtkImagePlaneWidget and connects the points with lines. This is done
> in-plane with the imageplanewidget. This part works fine, but now I need
> to pick those existing in-plane points/cells and connect them in 3D.
> I've setup a cellpicker and I'm performing picks (mouseover, then hit
> 'p'), but the cell ids that it returns don't make any sense. (I do turn
> off interaction and display of the imageplanewidgets when trying the
> picking).
>
> When I create the points/cells I note the location and cell id that was
> created. when I do the picking, I note the same information... but the
> cell ids don't always match up.
>
> For example, I create 4 points, with cell ids 0,1,2,3. I then do picking
> of the points in the same order, and get cell ids 1,4,5,3. The picked
> coordinates do match in 3D.
>
> Where are these weird cell ids coming from? I never explicitly created a
> cell id 4 or 5... There is a bounding box around the imageplanewidget
> setup, maybe this is getting in the way? Also, why does a red box show
> up around my polydata when i hit 'p'?
>
> I can include code if it helps in diagnosing this,
> -Greg
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>
--
d o m i n i k s z c z e r b a , p h d . . . . . . . . . . .
c o m p u t a t i o n a l l i f e s c i e n c e g r o u p
. . . . . . . i t ' i s r e s e a r c h f o u n d a t i o n
. . . . . . . . . . . . . . . . . . . . http://www.itis.ethz.ch
More information about the vtkusers
mailing list