<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
I figured it out with a little more looking into things. I was
initially noting the pointID of the points I was creating... and then
noting the cellID of the points I was picking... two completely
different things. When I checked the pointID of the picked things, it
does indeed pick correctly.<br>
-Greg<br>
<br>
<br>
<br>
Dominik Szczerba wrote:
<blockquote cite="mid:4A76F5ED.4030900@itis.ethz.ch" type="cite">Sounds
a little like your input dataset gets processed and your original
<br>
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.
<br>
<br>
- Dominik
<br>
<br>
Greg Book wrote:
<br>
<blockquote type="cite">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).
<br>
<br>
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.
<br>
<br>
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.
<br>
<br>
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'?
<br>
<br>
I can include code if it helps in diagnosing this,
<br>
-Greg
<br>
_______________________________________________
<br>
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
<br>
<br>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
<br>
<br>
Please keep messages on-topic and check the VTK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
<br>
<br>
Follow this link to subscribe/unsubscribe:
<br>
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
</body>
</html>