Well,<br><br>Here I'm attaching a screenshot. The output of a sample file what i get is like this. It is correct. If i render all in same color the it is correct. <br>Here is a sample code for it.<br><br>vtkDelaunay2D *del = vtkDelaunay2D::New();<br>del->SetInput(uGrid); // Unstructuredgrid containing scattered xy points<br>del->SetTolerance(0.005);<br>del->Update();<br><br>vtkContourFilter *cont = vtkcontourFilter::New();<br>cont->SetInputConnection(del->GetOutputPort());<br>cont->GenerateValues(1, -4.5, -4.5);<br>cont->Update();<br><br>vtkStripper *ps = vtkStripper::New();<br>ps->SetInputConnection( cont->GetOutputPort());<br>ps->Update();<br><br>Now the output of this stripper contains 16 cells and 198 points. That is also fine. But once i get a contour line as shown in attachment, I need <br>to perform some operation on the entire line by selecting/picking it. But in this case, if i use cell picker, then only one part of the fill line
is being picked.. <br><br>SO what can be done to pick the entire line.??<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br><br><blockquote><br>---------- Original message ----------<br>From:David Gobbi< david.gobbi@gmail.com ><br>Date: 01 Mar 10 18:37:28<br>Subject: Re: [vtkusers] vtkAppendPolyData()..<br>To: Rakesh Patil <rakeshthp@in.com><br><br>The filter you are looking for is vtkStripper, it will join the line<br>segments together.<br><br> David<br><br><br>On Mon, Mar 1, 2010 at 12:03 AM, Rakesh Patil <rakeshthp@in.com> wrote:<br>> Hi VTK Users..<br>><br>> I want to extract a single contour line from a set of xy points. So to begin<br>> with i used vtkContourFilter class to extract a single contour line of a<br>> particular value. But the output contained n number of lines not a single<br>> line. So I thought of merging them.. So i used,<br>><br>> vtkAppendPolyData<br>><br>> class to make it a single line. I get it as a single lin
e but there is a<br>> smal confusion here.. Suppose there are 6 lines. when displaying, the first<br>> point of the 2nd line is connected to the first point of 1st line. similarly<br>> first point of the third line is connected to the first point of the second<br>> line. Thus creating unwanted lines in between..<br>><br>> Any solution to get rid of this..???<br>><br>> Thanks<br>><br>> Regards<br>> Rakesh Patil<br>><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="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>><br>><br></rakeshthp@in.com></rakeshthp@in.com></blockquote>