summaryrefslogtreecommitdiff
path: root/twisted_coil_gen_twolayer.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-10-20 11:44:10 +0200
committerjaseg <git@jaseg.de>2023-10-20 11:44:10 +0200
commitef2b53325c04014f9ecb2dbd9ad373ef6db5b72f (patch)
tree75fea1657f2eca7025e77189235bbca78005959a /twisted_coil_gen_twolayer.py
parent5d3cd4694dbda4c0f70c5af540ea9a45480d03e0 (diff)
downloadgerbonara-ef2b53325c04014f9ecb2dbd9ad373ef6db5b72f.tar.gz
gerbonara-ef2b53325c04014f9ecb2dbd9ad373ef6db5b72f.tar.bz2
gerbonara-ef2b53325c04014f9ecb2dbd9ad373ef6db5b72f.zip
Test board fixes
Diffstat (limited to 'twisted_coil_gen_twolayer.py')
-rw-r--r--twisted_coil_gen_twolayer.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/twisted_coil_gen_twolayer.py b/twisted_coil_gen_twolayer.py
index 98c5ed0..5f06c39 100644
--- a/twisted_coil_gen_twolayer.py
+++ b/twisted_coil_gen_twolayer.py
@@ -233,13 +233,12 @@ def _gmsh_coil_inductance_geometry(traces, mesh_out, bbox, copper_thickness, boa
for elem in tr:
if isinstance(elem, kicad_pcb.Via):
- cylinder_tag = occ.addCylinder(elem.at.x, elem.at.y, 0, 0, 0, -board_thickness, elem.drill)
+ cylinder_tag = occ.addCylinder(elem.at.x, elem.at.y, 0, 0, 0, -board_thickness, elem.drill/2)
tags.append(cylinder_tag)
occ.synchronize()
if len(tags) > 1:
print('fusing', tags)
- gmsh.write('/tmp/test_foo.geo_unrolled')
tags, tag_map = occ.fuse([(3, tags[0])], [(3, tag) for tag in tags[1:]])
print(tags)