runtime: classifying border curves into points, lines and arcs.