<!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">
Thanks for the reply. I think I understand what you are saying, but I
load the dataset first, pick points on the cut planes, and create a
polydata from that. I display and update that polydata as points are
picked in-plane. I end up with a set of contour lines (one for each
slice of the data), then I want to connect the contour lines. I turn
off the vtkImagePlaneWidget and end up with a vtkPolyData floating in
3D space, then I start picking from that polydata. That's when I get
the weird IDs.<br>
<br>
Why would the cell ids be lost, since it is the same vtkPolyData object
throughout the program?<br>
<br>
How would I keep the original IDs as an integer scalar value?<br>
<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>