getDiscreteContour function

Discrete smooth contour from anchors