Hi Laurent. I am using a contouring algorithm to produce the line segments. The algorithm processes a matrix four points at a time to see if the square formed by those points contains a contour line. If it does then a line segment is produced. I can provide more information on the process if you need it.