diff --git a/notebook_nueva/hinged_lid.py b/notebook_nueva/hinged_lid.py index 248dcdc..c26501e 100644 --- a/notebook_nueva/hinged_lid.py +++ b/notebook_nueva/hinged_lid.py @@ -228,40 +228,63 @@ def model(): .cutBlind(-hinge_width / 2 - 1) ) + # M3 hex nut dimensions + m3_hn_diam = 5.5 / 2 + m3_hn_hole = 1.5 + m3_hn_thickness = 2.5 + + bezel_width = 5 + bezel_height = shell_t + # Screen mount model = ( + # 1st layer model.workplaneFromTagged("base") .center(0, -32) - .tag("screen_plane") .workplane(offset=thickness / 2 - shell_t) + .tag("screen_plane") .placeSketch( cq.Sketch() .trapezoid( - screen_mount.scr_w + 2 * shell_t, screen_mount.scr_h + 2 * shell_t, 90 + screen_mount.scr_w + 2 * bezel_width, + screen_mount.scr_h + 2 * bezel_height, + 90, ) .vertices() .fillet(2) ) - .extrude(-9) + .extrude(-2 - screen_mount.scr_thickness) + # Holes for captured nuts .workplaneFromTagged("screen_plane") - .workplane(offset=thickness / 2 - shell_t) - .placeSketch( - cq.Sketch() - .trapezoid(screen_mount.vis_w, screen_mount.vis_h, 90) - .vertices() - .fillet(2) + .workplane(offset=1) + .rect( + screen_mount.scr_w + 2 * bezel_width - m3_hn_diam - 1, + screen_mount.scr_h + 2 * bezel_height - m3_hn_diam - 1, + forConstruction=True, ) - .cutBlind(-9) + .vertices() + .hole(m3_hn_diam, depth=m3_hn_thickness + 0.5) + # Hole for screws + .workplaneFromTagged("screen_plane") + .workplane(offset=1) + .rect( + screen_mount.scr_w + 2 * bezel_width - m3_hn_diam - 1, + screen_mount.scr_h + 2 * bezel_height - m3_hn_diam - 1, + forConstruction=True, + ) + .vertices() + .hole(m3_hn_hole, depth=10) + # Hole to place screen .workplaneFromTagged("screen_plane") - .workplane(offset=thickness / 2 - shell_t) .placeSketch( cq.Sketch().trapezoid( screen_mount.scr_w - 40, screen_mount.scr_h + 2 * shell_t, 90 ) ) - .cutBlind(-9) + .cutBlind(-100) + # Remove middle of the screen holder .workplaneFromTagged("screen_plane") - .workplane(offset=thickness / 2 - shell_t - screen_mount.scr_thickness - 2) + .workplane(offset=-screen_mount.scr_thickness - 2) .placeSketch(cq.Sketch().trapezoid(screen_mount.scr_w, screen_mount.scr_h, 90)) .cutBlind(screen_mount.scr_thickness) ) @@ -300,7 +323,7 @@ if __name__ == "__main__": model, "hinged_lid.svg", opt={ - "projectionDir": (0, 0, 1), + "projectionDir": (0, 0, -1), "strokeWidth": 0.3, }, ) diff --git a/notebook_nueva/hinged_lid.stl b/notebook_nueva/hinged_lid.stl index 7a0c17f..7810639 100644 Binary files a/notebook_nueva/hinged_lid.stl and b/notebook_nueva/hinged_lid.stl differ diff --git a/notebook_nueva/hinged_lid.svg b/notebook_nueva/hinged_lid.svg index 7718d2d..9ed22e3 100644 --- a/notebook_nueva/hinged_lid.svg +++ b/notebook_nueva/hinged_lid.svg @@ -6,433 +6,395 @@ height="240.0" > - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/notebook_nueva/left_hinged_lid.stl b/notebook_nueva/left_hinged_lid.stl index 36034a6..a6ef6cc 100644 Binary files a/notebook_nueva/left_hinged_lid.stl and b/notebook_nueva/left_hinged_lid.stl differ diff --git a/notebook_nueva/right_hinged_lid.stl b/notebook_nueva/right_hinged_lid.stl index d9c3f7f..2ca9746 100644 Binary files a/notebook_nueva/right_hinged_lid.stl and b/notebook_nueva/right_hinged_lid.stl differ