assign outcode to vertices and add printlines