diff --git a/notebook_nueva/hinged_lid.py b/notebook_nueva/hinged_lid.py index 58899e0..248dcdc 100644 --- a/notebook_nueva/hinged_lid.py +++ b/notebook_nueva/hinged_lid.py @@ -255,10 +255,9 @@ def model(): .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) - .vertices() - .fillet(2) + cq.Sketch().trapezoid( + screen_mount.scr_w - 40, screen_mount.scr_h + 2 * shell_t, 90 + ) ) .cutBlind(-9) .workplaneFromTagged("screen_plane") @@ -305,3 +304,21 @@ if __name__ == "__main__": "strokeWidth": 0.3, }, ) + + offset_width = -width / 2 + + right_side = ( + model.faces(">X") + .workplane(centerOption="CenterOfBoundBox", offset=offset_width) + .split(keepTop=True) + ) + + exporters.export(right_side, "right_hinged_lid.stl") + + left_side = ( + model.faces(">X") + .workplane(centerOption="CenterOfBoundBox", offset=offset_width) + .split(keepBottom=True) + ) + + exporters.export(left_side, "left_hinged_lid.stl") diff --git a/notebook_nueva/hinged_lid.stl b/notebook_nueva/hinged_lid.stl index cfae68a..57fb748 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 51d4ac4..e636b02 100644 --- a/notebook_nueva/hinged_lid.svg +++ b/notebook_nueva/hinged_lid.svg @@ -35,31 +35,27 @@ - + - - - + + - - - - - + + + - - - + + @@ -93,39 +89,35 @@ - + - - + - + - + - - - + - + - + - - + @@ -270,8 +262,8 @@ - + diff --git a/notebook_nueva/left_hinged_lid.stl b/notebook_nueva/left_hinged_lid.stl new file mode 100644 index 0000000..8d08bec Binary files /dev/null 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 new file mode 100644 index 0000000..d5c0e50 Binary files /dev/null and b/notebook_nueva/right_hinged_lid.stl differ