<br>Yes it does changes ... I get the points.. But when i connect these points using polyline, again i get a zigzag lines...<br><blockquote><br>---------- Original message ----------<br>From:David Doria&lt; daviddoria+vtk@gmail.com &gt;<br>Date: 31 Jan 10 01:22:41<br>Subject:  Re: [vtkusers] connecting points in from vtkPoints<br>To: rakeshthp@in.com<br><br>Thanks,<br><br>David<br><br><br><br>On Sat, Jan 30, 2010 at 12:25 PM, Rakesh Patil <rakeshthp@in.com> wrote:<br>&gt; I need to store the points in an array.. but vtkStripper is not returning<br>&gt; the points.. i tried implementing it as follows<br>&gt;<br>&gt; vtkStripper *sp = vtkStripper::New();<br>&gt;<br>&gt; sp-&gt;SetInputConnection( contFilter-&gt;GetOutputPort());<br>&gt;<br>&gt; vtkPoints *pt = sp-&gt;GetPoints();<br>&gt;<br>&gt; Here pt is not showing any values.. It is all empty..<br>&gt;<br>&gt; ---------- Original message ----------<br>&gt; From:Bill Lorensen&lt; bill.lorensen@gmail.com &gt;<br>&gt; Date: 3
 0 Jan 10 18:44:20<br>&gt; Subject: Re: [vtkusers] connecting points in from vtkPoints<br>&gt; To: Rakesh Patil<br>&gt;<br>&gt; Use vtkStripper to order the line segments output from vtkContourFilter.<br>&gt;<br>&gt; On Fri, Jan 29, 2010 at 5:30 AM, Rakesh Patil wrote:<br>&gt;&gt; Hello,<br>&gt;&gt;<br>&gt;&gt; I have a scatter data, (xyz file), where x and y are long, and lat resp<br>&gt;&gt; and<br>&gt;&gt; z is depth. I need to extract a zero contour from this xyz data. I use<br>&gt;&gt; vtkContourFilter to extract the points for zero contour.<br>&gt;&gt;<br>&gt;&gt; I get the points what i require correctly.. But if i connect them<br>&gt;&gt; serially,<br>&gt;&gt; it shows that points are connected in a zig-zag form. I get points<br>&gt;&gt; directly<br>&gt;&gt; from contuorfilter. i.e.<br>&gt;&gt;<br>&gt;&gt; vtkPoints *pts = contFilter-&gt;GetOutput()-&gt;GetPoints();<br>&gt;&gt;<br>&gt;&gt; What and how do i do, so that when i connect the points, i get a decent<br>&gt;
 &gt; connected line, instead of zig zag ..?<br>&gt;&gt;<br>&gt;&gt; Thanks<br>&gt;&gt;<br>&gt;&gt; Regards<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Dear vtkusers ! Get Yourself a cool, short @in.com Email ID now!<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;&gt;<br>&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt; <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;&gt;<br>&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&gt; <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;&gt;<br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt; <a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.
 vtk.org/mailman/listinfo/vtkusers</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br>&gt;<br><br>Try updating the stripper:<br><br>vtkSmartPointer<vtkstripper> stripper =<br>  vtkSmartPointer<vtkstripper>::New();<br>st
 ripper-&gt;SetInputConnection( contFilter-&gt;GetOutputPort());<br>stripper-&gt;Update();<br>vtkPoints *pt = stripper-&gt;GetPoints();<br><br>Does that change anything?<br><br>Dave<br>_______________________________________________<br>Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br>http://www.vtk.org/mailman/listinfo/vtkusers<br></vtkstripper></vtkstripper></rakeshthp@in.com></blockquote> <br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com
 /mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>