<br>You mean to say vtkStripper will return an output with a single cell..??<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br><blockquote><br>---------- Original message ----------<br>From:David Gobbi&lt; david.gobbi@gmail.com &gt;<br>Date: 02 Mar 10 11:25:08<br>Subject:  Re: [vtkusers] vtkAppendPolyData()..<br>To: Rakesh Patil <rakeshthp@in.com><br><br>My only guess is that your data set might have duplicate points, or<br>perhaps there are other factors which might result in degenerate (i.e.<br>micro-thin) triangles prior to the contouring.  Any duplicate points<br>or degenerate triangles prior to the contouring will make it produce<br>lines where the adjacent segments don't actually share a point,<br>because that point is actually two points that are almost exactly on<br>top of one another.  As a result, vtkStripper won't be able to do its<br>job.<br><br>You can remove duplicated points with vtkCleanPolyData.  Anywhere in<br>the pipeline before vtkStripper should work, but 
 just before<br>vtkContourFilter might be best.<br><br>  David<br><br><br>On Mon, Mar 1, 2010 at 9:50 PM, Rakesh Patil <rakeshthp@in.com> wrote:<br>&gt; Well,<br>&gt;<br>&gt; Here I'm attaching a screenshot. The output of a sample file what i get is<br>&gt; like this. It is correct. If i render all in same color the it is correct.<br>&gt; Here is a sample code for it.<br>&gt;<br>&gt; vtkDelaunay2D *del = vtkDelaunay2D::New();<br>&gt; del-&gt;SetInput(uGrid); // Unstructuredgrid containing scattered xy points<br>&gt; del-&gt;SetTolerance(0.005);<br>&gt; del-&gt;Update();<br>&gt;<br>&gt; vtkContourFilter *cont = vtkcontourFilter::New();<br>&gt; cont-&gt;SetInputConnection(del-&gt;GetOutputPort());<br>&gt; cont-&gt;GenerateValues(1, -4.5, -4.5);<br>&gt; cont-&gt;Update();<br>&gt;<br>&gt; vtkStripper *ps = vtkStripper::New();<br>&gt; ps-&gt;SetInputConnection( cont-&gt;GetOutputPort());<br>&gt; ps-&gt;Update();<br>&gt;<br>&gt; Now the output of this stripper contains 16 cells and
  198 points. That is<br>&gt; also fine. But once i get a contour line as shown in attachment, I need<br>&gt; to perform some operation on the entire line by selecting/picking it. But in<br>&gt; this case, if i use cell picker, then only one part of the fill line is<br>&gt; being picked..<br>&gt;<br>&gt; SO what can be done to pick the entire line.??<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; Regards<br>&gt; Rakesh Patil<br>&gt;<br>&gt;<br>&gt; ---------- Original message ----------<br>&gt; From:David Gobbi&lt; david.gobbi@gmail.com &gt;<br>&gt; Date: 01 Mar 10 18:37:28<br>&gt; Subject: Re: [vtkusers] vtkAppendPolyData()..<br>&gt; To: Rakesh Patil<br>&gt;<br>&gt; The filter you are looking for is vtkStripper, it will join the line<br>&gt; segments together.<br>&gt;<br>&gt; David<br>&gt;<br>&gt;<br>&gt; On Mon, Mar 1, 2010 at 12:03 AM, Rakesh Patil wrote:<br>&gt;&gt; Hi VTK Users..<br>&gt;&gt;<br>&gt;&gt; I want to extract a single contour line from a set of xy points. So to<br>&g
 t;&gt; begin<br>&gt;&gt; with i used vtkContourFilter class to extract a single contour line of a<br>&gt;&gt; particular value. But the output contained n number of lines not a single<br>&gt;&gt; line. So I thought of merging them.. So i used,<br>&gt;&gt;<br>&gt;&gt; vtkAppendPolyData<br>&gt;&gt;<br>&gt;&gt; class to make it a single line. I get it as a single lin e but there is a<br>&gt;&gt; smal confusion here.. Suppose there are 6 lines. when displaying, the<br>&gt;&gt; first<br>&gt;&gt; point of the 2nd line is connected to the first point of 1st line.<br>&gt;&gt; similarly<br>&gt;&gt; first point of the third line is connected to the first point of the<br>&gt;&gt; second<br>&gt;&gt; line. Thus creating unwanted lines in between..<br>&gt;&gt;<br>&gt;&gt; Any solution to get rid of this..???<br>&gt;&gt;<br>&gt;&gt; Thanks<br>&gt;&gt;<br>&gt;&gt; Regards<br>&gt;&gt; Rakesh Patil<br>&gt;&gt;<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></rakeshthp@in.com></rakeshthp@in.com></blockquote>