blob: bb6367b4ca56d8186e6db2fcae454e007f45766f [file] [log] [blame]
Tim Edwards60aeb5f2020-10-14 16:29:04 -04001namespace path {::tcl::mathop ::tcl::mathfunc}
2
3# Bump bond is a circle (approximated by a 20-sided polygon) of
4# diameter nominally 250um
5
6set rbump 125
7set coords []
8for {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
15eval [subst {polygon metalrdl $coords}]