import cadquery as cq from cadquery.occ_impl.exporters import ExportTypes from ocp_vscode import show, show_object ###### Angle param ##### a_thick = 1.7 a_diam = 3.2 a_gap_width = 1 overhang_a_width = a_gap_width /2 * 0.9 overhang_a_height = 3 b_thick = 4.2 b_diam = 2.8 b_gap_width = a_gap_width overhang_b_width = b_gap_width /2 * 0.98 overhang_b_height = overhang_a_height thick_eps = 0.1 space_height = 2.5 space_diam = 7 overhang_top = 0.5 print_height = 3 spacer = cq.Workplane("XY").cylinder(space_height, space_diam/2) clip_a = ( spacer.faces(">Z").workplane() .circle(a_diam/2-thick_eps).extrude(a_thick, combine=False) .faces(">Z").workplane() .circle(a_diam/2+overhang_a_width).workplane(offset=overhang_a_height+thick_eps) .circle(overhang_top).loft() .faces(">Z").workplane() .rect(a_gap_width, 100) .cutThruAll() ) clip_b = ( spacer.faces("