add max and min angle control

add max and min angle control  while  the polygons are  generatered