rewrite of edge curvature rendering to allow multiple orientations