<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< david.gobbi@gmail.com ><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>> Well,<br>><br>> Here I'm attaching a screenshot. The output of a sample file what i get is<br>> 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<br>> 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<br>> this case, if i use cell picker, then only one part of the fill line is<br>> 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>><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<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 wrote:<br>>> Hi VTK Users..<br>>><br>>> I want to extract a single contour line from a set of xy points. So to<br>&g
t;> 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<br>>> first<br>>> point of the 2nd line is connected to the first point of 1st line.<br>>> similarly<br>>> first point of the third line is connected to the first point of the<br>>> 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>><br></rakeshthp@in.com></rakeshthp@in.com></blockquote>