From ef2b53325c04014f9ecb2dbd9ad373ef6db5b72f Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 20 Oct 2023 11:44:10 +0200 Subject: Test board fixes --- twisted_coil_gen_twolayer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'twisted_coil_gen_twolayer.py') 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) -- cgit