Tim Edwards | 60aeb5f | 2020-10-14 16:29:04 -0400 | [diff] [blame] | 1 | namespace path {::tcl::mathop ::tcl::mathfunc} |
2 | |||||
3 | # Bump bond is a circle (approximated by a 20-sided polygon) of | ||||
4 | # diameter nominally 250um | ||||
5 | |||||
6 | set rbump 125 | ||||
7 | set coords [] | ||||
8 | for {set i 0} {$i < 20} {incr i} { | ||||
9 | set angle [* $i 18] | ||||
10 | set arad [/ [* 3.1415926 $angle] 180.0] | ||||
11 | lappend coords [int [* $rbump [cos $arad]]]um | ||||
12 | lappend coords [int [* $rbump [sin $arad]]]um | ||||
13 | } | ||||
14 | |||||
15 | eval [subst {polygon metalrdl $coords}] |