Missing files, screen mount simplified

This commit is contained in:
Roberto Alsina 2022-11-25 14:46:30 -03:00
parent e9b3a42564
commit bf1f0cc4ce
8 changed files with 50824 additions and 44615 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@ -29,28 +29,19 @@ scr_thickness = 5.5
screen_cutout = cq.Sketch().trapezoid(scr_w, scr_h, 90, mode="a") screen_cutout = cq.Sketch().trapezoid(scr_w, scr_h, 90, mode="a")
# Circuit board and cable space # Circuit board and cable space
board_cutout = cq.Sketch().polygon( board_cutout = cq.Sketch().trapezoid(
[ scr_w,
(0, 0), scr_h - 16,
(width / 2 - 10, 0), 90,
(width / 2 - 10, vis_h - 20),
(0, vis_h - 20),
(0, 0),
],
mode="a", mode="a",
) )
board_cutout_2 = cq.Sketch().polygon( board_cutout_2 = cq.Sketch().trapezoid(
[ scr_w + 5,
(0, 0), scr_h - 10,
(width / 2 - 10 + 4, 0), 90,
(width / 2 - 10 + 4, vis_h - 20 + 4),
(0, vis_h - 20 + 4),
(0, 0),
],
mode="a", mode="a",
) )
def model(): def model():
return ( return (
cq.Workplane("XY") cq.Workplane("XY")
@ -74,20 +65,18 @@ def model():
.placeSketch(screen_cutout) .placeSketch(screen_cutout)
.cutBlind(-scr_thickness) .cutBlind(-scr_thickness)
# Cut for the screen board and cables # Cut for the screen board and cables
.workplaneFromTagged("slanted") # .workplaneFromTagged("slanted")
.workplane(offset=-shell_t - scr_thickness, centerOption="CenterOfBoundBox") # .workplane(offset=-shell_t - scr_thickness, centerOption="CenterOfBoundBox")
.center(0, -(vis_h - 20) / 2) # .placeSketch(board_cutout)
.placeSketch(board_cutout) # .cutBlind(-1)
.cutBlind(-5)
# Make it hollow # Make it hollow
.faces("<Z") .faces("<Z")
.shell(-2) .shell(-2)
# Cut AGAIN for the screen board and cables # Cut AGAIN for the screen board and cables
.workplaneFromTagged("slanted") .workplaneFromTagged("slanted")
.workplane(offset=-shell_t - scr_thickness, centerOption="CenterOfBoundBox") .workplane(offset=-scr_thickness, centerOption="CenterOfBoundBox")
.center(0, -(vis_h -20 + 4) / 2)
.placeSketch(board_cutout_2) .placeSketch(board_cutout_2)
.cutBlind(-7) .cutBlind(-5)
) )

File diff suppressed because it is too large Load Diff