Correct lines visualization.

Visualization of lines together with shaded surface gave following results:[ATTACH=CONFIG]920[/ATTACH]

How to improve lines quality?

Use polygon offset to push the polygons backwards in Z:

//draw surfaces

You can adjust the variable and constant offset amounts sent to glPolygonOffset() to tune it to what works for your scene. I’ve found that 2,2 works quite well for my application.