Added 6th screen mounting pillar, improved kbd cable hole placement and screen mounting code

This commit is contained in:
Roberto Alsina 2023-01-30 10:57:33 -03:00
parent 6cbd7e2b15
commit 76af86ac70
8 changed files with 179977 additions and 157413 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -55,6 +55,7 @@ kbd_lower_pillars = (
# Measured from top-left corner OUTSIDE
mounting_pillar_positions = [
(6, -6),
(6, -40),
(120, -6),
(170, -6),
(width - 6, -6),

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -42,15 +42,10 @@ board_cutout = cq.Sketch().trapezoid(
kbd_cable_hole = cq.Sketch().trapezoid(20, 9, 90, mode="a").vertices().fillet(1)
# The last mounting pillar is handled specially
x, y = mounting_pillar_positions[-1]
mounting_pillars = (
cq.Sketch()
.polygon([(0, 0), (width, 0), (width, -12), (0, -12), (0, 0)], mode="a")
.polygon(
[(x - 6, y - 6), (x - 6, y + 6), (x + 6, y + 6), (x + 6, y - 6), (x - 6, y - 6)]
)
.push(mounting_pillar_positions)
.trapezoid(-12, 12, 90, mode="a")
.circle(ti_radius, mode="s")
)
@ -122,11 +117,11 @@ def model():
.placeSketch(board_cutout)
.cutBlind(-6)
# Make small hole for the keyboard cable
.faces(">Y")
.workplane(offset=-5, centerOption="CenterOfBoundBox")
.center(-width / 2 + 175, -25)
.faces("<Y")
.workplane(centerOption="CenterOfBoundBox")
.center(width / 2 - 175, -4)
.placeSketch(kbd_cable_hole)
.cutBlind(-1000)
.cutBlind(-height / 2)
# Pillars to join with bottom half
.workplaneFromTagged("mid_height")
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")

File diff suppressed because it is too large Load Diff