title: Sorting of vertices after intersection of 3d isosurface with plane
body: <p>Here is another geometric problem:</p>
  
  <p>I have created an 3-dimensional triangulated iso-surface of a point cloud using the marching cubes algorithm. Then I intersect this iso-surface with a plane and get a number of line segments that represent the contour lines of the intersection. </p>
  
  <p>Is there any possibility to sort the vertices of these line segments clockwise so that I can draw them as a closed path and do a flood fill?</p>
  
  <p>Thanks in advance!</p>