add edge control

add some code to control the radio of different polygon.