<div class="gmail_quote">On Fri, May 7, 2010 at 2:01 PM, Arnaud GELAS <span dir="ltr"><<a href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  

<div bgcolor="#ffffff" text="#000000">
Hi Karthik,<br>
<br>
Let me tell you a bit more about the process Nicolas is implementing:<br>
<ol>
  <li>Run a level set on a 2D image</li>
  <li>Apply vtkContourFilter or vtkMarchignSquares</li>
  <li>Decimate the resulting vtkPolyData using vtkDecimatePolyline</li>
  <li>Initialize the contour widget with the resulting polydata<br>
  </li>
</ol>
In such a pipeline when initializing the contour widget, the input
polydata points can not be in order, and then we finally ended
iterating on the line to sort the order of the point container.<br>
<br>
So, I wonder do you think it could be included in the
vtkContourRepresentation class?<br></div></blockquote><div><br>Sure. Do you have the ordering code around ?<br><br>Thanks<br>--<br>karthik</div></div><br>