<br><br><blockquote>Well, thanks a lot for your help and support...<br><br>I got the output what i wanted... Now a small modification required..<br>Is there any class in VTK to redistribute points equally spaced..??<br>The output which i get has points which are unequally spaced..<br>But i want them to be equally spaced..<br><br>Thanks<br><br>---------- Original message ----------<br>From:Bill Lorensen&lt; bill.lorensen@gmail.com &gt;<br>Date: 02 Feb 10 02:14:28<br>Subject:  Re: [vtkusers] connecting points in from vtkPoints<br>To: Rakesh Patil <rakeshthp@in.com><br><br>This example<br>http://vtk.org/Wiki/VTK/Examples/ExtractPolyLinesFromPolyData#ExtractPolyLinesFromPolyData.cxx<br>shows you how to extract the polylines from vtkCutter followed by vtkStripper.<br><br>On Mon, Feb 1, 2010 at 1:29 PM, Bill Lorensen <bill.lorensen@gmail.com> wrote:<br>&gt; You can get the number of lines with:<br>&gt;<br>&gt; yourPolyData-&gt;GetNumberOfLines();<br>&gt;<br>&gt; You can get the li
 nes with something like:<br>&gt;<br>&gt; vtkIdType npts;<br>&gt; vtkIdType *indx;<br>&gt;<br>&gt; cells = yourPolyData-&gt;GetLines();<br>&gt;<br>&gt; for (cells-&gt;InitTraversal(); cells-&gt;GetNextCell(npts,indx); )<br>&gt; ....<br>&gt; indx is an index into the points.<br>&gt;<br>&gt; On Mon, Feb 1, 2010 at 12:16 PM, Rakesh Patil <rakeshthp@in.com> wrote:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Hi.<br>&gt;&gt;<br>&gt;&gt; I guess vtkStripper produces vtkPolydata as its output.. so How can be the<br>&gt;&gt; polyline extracted from vtkstripper?<br>&gt;&gt; As u said, i'm using the points from stripper and producing polyline of my<br>&gt;&gt; own..<br>&gt;&gt;<br>&gt;&gt; Thanks<br>&gt;&gt;<br>&gt;&gt; ---------- Original message ----------<br>&gt;&gt; From:Bill Lorensen&lt; bill.lorensen@gmail.com &gt;<br>&gt;&gt; Date: 01 Feb 10 19:19:48<br>&gt;&gt; Subject: Re: [vtkusers] connecting points in from vtkPoints<br>&gt;&gt; To: Rakesh Patil<br>&gt;&gt;<br>&gt;&gt; Are you using 
 the polyline generated by the stripper or creating your<br>&gt;&gt; own? You must use the one produced by the stripper.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On Mon, Feb 1, 2010 at 4:14 AM, Rakesh Patil wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Yes it does changes ... I get the points.. But when i connect these points<br>&gt;&gt;&gt; using polyline, again i get a zigzag lines...<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; ---------- Original message ----------<br>&gt;&gt;&gt; From:David Doria&lt; daviddoria+vtk@gmail.com &gt;<br>&gt;&gt;&gt; Date: 31 Jan 10 01:22:41<br>&gt;&gt;&gt; Su bject: Re: [vtkusers] connecting points in from vtkPoints<br>&gt;&gt;&gt; To: rakeshthp@in.com<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Thanks,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; David<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Sat, Jan 30, 2010 at 12:25 PM, Rakesh Patil wrote:<br>&gt;&gt;&gt;&gt; I need to store the points in an array.. but vtkStripper is not returning<br>&gt;&gt;&gt;&gt; the point
 s.. i tried implementing it as follows<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; vtkStripper *sp = vtkStripper::New();<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; sp-&gt;SetInputConnection( contFilter-&gt;GetOutputPort());<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; vtkPoints *pt = sp-&gt;GetPoints();<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Here pt is not showing any values.. It is all empty..<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; ---------- Original message ----------<br>&gt;&gt;&gt;&gt; From:Bill Lorensen&lt; bill.lorensen@gmail.com &gt;<br>&gt;&gt;&gt;&gt; Date: 3 0 Jan 10 18:44:20<br>&gt;&gt;&gt;&gt; Subject: Re: [vtkusers] connecting points in from vtkPoints<br>&gt;&gt;&gt;&gt; To: Rakesh Patil<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Use vtkStripper to order the line segments output from vtkContourFilter.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; On Fri, Jan 29, 2010 at 5:30 AM, Rakesh Patil wrote:<br>&gt;&gt;&gt;&gt;&gt; Hello,<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; I h
 ave a scatter data, (xyz file), where x and y are long, and lat resp<br>&gt;&gt;&gt;&gt;&gt; and<br>&gt;&gt;&gt;&gt;&gt; z is depth. I need to extract a zero contour from this xyz data. I use<br>&gt;&gt;&gt;&gt;&gt; vtkContourFilter to extract the points for zero contour.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; I get the points what i require correctly.. But if i connect them<br>&gt;&gt;&gt;&gt;&gt; serially,<br>&gt;&gt;&gt;&gt;&gt; it shows that points are connected in a zig-zag form. I get points<br>&gt;&gt;&gt;&gt;&gt; directly<br>&gt;&gt;&gt;&gt;&gt; from contuorfilter. i.e.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; vtkPoints *pts = contFilter-&gt;GetOutput()-&gt;GetPoints();<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; What and how do i do, so that when i connect the points, i get a decent<br>&gt;&gt;&gt;&gt; &gt; connected line, instead of zig zag ..?<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Thanks<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;
  Regards<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Dear vtkusers ! Get Yourself a cool, short @in.com Email ID now!<br>&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt;&gt;&gt; Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt;&gt;&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;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&gt;&gt;&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;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt;&gt;&gt;&gt; <a target=\"_blank\" href="htt
 p://www." target="_blank">http://www.</a> vtk.org/mailman/listinfo/vtkusers<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt; &gt; ;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt;&gt; Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt;&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;&gt;&gt;<br>&gt;&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&gt;&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;&gt;&gt;<br>&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt;&gt;&gt; <a target=\"_blank\" href="http://www." target="_blank">http://www.</a>vt
 k.org/mailman/listinfo/vtkusers<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Try updating the stripper:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; vtkSmartPointer stripper =<br>&gt;&gt;&gt; vtkSmartPointer::New();<br>&gt;&gt;&gt; st ripper-&gt;SetInputConnectio n( contFilter-&gt;GetOutputPort());<br>&gt;&gt;&gt; stripper-&gt;Update();<br>&gt;&gt;&gt; vtkPoints *pt = stripper-&gt;GetPoints();<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Does that change anything?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Dave<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&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;&gt;<br>&gt;&gt;&gt; Please keep messages on-topic an
 d check the VTK FAQ at:<br>&gt;&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;&gt;<br>&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt;&gt; <a target=\"_blank\" href="http://www." target="_blank">http://www.</a>vtk.org/mailman/listinfo/vtkusers<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Get Yourself a cool, short @in.com Email I D now!<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&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;&gt;<br>&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&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;&gt;<br>&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt;&gt; <a target=\"_blank\" href="http://www." target="_blank">http://www.</a>vtk.org/mailman/listinfo/vtkusers<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;<br></rakeshthp@in.com></bill.lorensen@gmail.com></rakeshthp@in.com></blockquote>