From 606d1b9e64d58ea185e99d7bc4e33fbd10816104 Mon Sep 17 00:00:00 2001 From: joshreve Date: Mon, 26 Oct 2020 22:10:46 -0400 Subject: Removed extraneous plate function. --- src/dactyl_manuform_cadquery.py | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'src') diff --git a/src/dactyl_manuform_cadquery.py b/src/dactyl_manuform_cadquery.py index 7daf6fb..ca88d29 100644 --- a/src/dactyl_manuform_cadquery.py +++ b/src/dactyl_manuform_cadquery.py @@ -198,39 +198,6 @@ CLIP_UNDERCUT = 1.0 UNDERCUT_TRANSITION = .2 -def single_plate1(): - # print('single_plate()') - - shape = cq.Workplane("XY").box(mount_width, mount_height, mount_thickness) - shape = shape.translate((0.0, 0.0, -mount_thickness / 2.0)) - - shape_cut = cq.Workplane("XY").box(SWITCH_WIDTH, SWITCH_HEIGHT, mount_thickness * 2) - shape_cut = shape_cut.translate((0.0, 0.0, -mount_thickness)) - - shape = shape.cut(shape_cut) - - undercut = cq.Workplane("XY").box( - SWITCH_WIDTH + 2 * CLIP_UNDERCUT, - SWITCH_HEIGHT + 2 * CLIP_UNDERCUT, - mount_thickness - ) - - undercut = undercut.translate(( - 0.0, - 0.0, - -CLIP_THICKNESS - mount_thickness / 2.0 - )) - - if UNDERCUT_TRANSITION > 0: - undercut = undercut.faces("+Z").chamfer(UNDERCUT_TRANSITION, CLIP_UNDERCUT) - - shape = shape.cut(undercut) - - shape = shape.translate((0, 0, plate_thickness)) - - return shape - - def single_plate(cylinder_segments=100): top_wall = cq.Workplane("XY").box(keyswitch_width + 3, 1.5, plate_thickness) top_wall = top_wall.translate((0, (1.5 / 2) + (keyswitch_height / 2), plate_thickness / 2)) -- cgit v1.2.3-70-g09d2