From e349c2c08b4aa6be402a11fc9a4a350508415d7d Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 14 Jun 2023 10:47:49 +0200 Subject: WIP --- coil_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coil_gen.py b/coil_gen.py index 758f3b6..642a77d 100644 --- a/coil_gen.py +++ b/coil_gen.py @@ -117,12 +117,12 @@ def generate(infile, outfile, polygon, start_angle, stop_radius, trace_width, cl dma = dist(pa2, ma) dmb = dist(pb1, mb) - qa = dr_tot_a*dma/h + qa = dr_tot_a*dma/ha dra = hypot(dr_tot_a, qa) xea = xa2 + (cx - xa2) / dist((cx, cy), pa2) * dra yea = ya2 + (cy - ya2) / dist((cx, cy), pa2) * dra - qb = dr_tot_b*dmb/h + qb = dr_tot_b*dmb/hb drb = hypot(dr_tot_b, qb) xeb = xb1 + (cx - xb1) / dist((cx, cy), pb1) * drb yeb = yb1 + (cy - yb1) / dist((cx, cy), pb1) * drb -- cgit