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