Fix screen holder split, add cutout for kbd cable

This commit is contained in:
Roberto Alsina 2022-11-28 11:26:23 -03:00
parent f01e5a92ee
commit db5e874d91
5 changed files with 35519 additions and 19528 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -38,11 +38,14 @@ board_cutout = cq.Sketch().trapezoid(
mode="a",
)
kbd_cable_hole = cq.Sketch().trapezoid(15, 5, 90, mode="a").vertices().fillet(1)
def model():
return (
cq.Workplane("XY")
.workplane().tag("mid_height")
.workplane()
.tag("mid_height")
.box(width, 59, 62)
.faces(">Z")
.transformed(rotate=(45, 0, 0))
@ -79,35 +82,35 @@ def model():
.placeSketch(board_cutout)
.cutBlind(-5)
# Fillet top of the object
.edges(">Z and |X").fillet(5)
.edges(">Z and |X")
.fillet(5)
# Make small hole for the keyboard cable
.faces(">Y")
.workplane(offset=-5, centerOption="CenterOfBoundBox")
.center(width / 2 - 128, -23)
.placeSketch(kbd_cable_hole)
.cutBlind(-1000)
)
exporters.export(model(), "screen_mount.stl")
left_cutout = cq.Sketch().polygon(
[(0, 0), (160, 0), (160, -100), (0, -100), (0, 0)],
mode="a",
)
right_side = (
model()
.faces("<Z")
.workplane(centerOption="CenterOfBoundBox", offset=3)
.center(-width / 2, height / 2)
.placeSketch(left_cutout)
.cutBlind(-100)
.faces(">X")
.workplane(centerOption="CenterOfBoundBox", offset=-140)
.center(0, height / 2)
.split(keepTop=True)
)
exporters.export(right_side, "right_screen_mount.stl")
left_side = (
model()
.faces("<Z")
.workplane(centerOption="CenterOfBoundBox", offset=3)
.faces(">X")
.workplane(centerOption="CenterOfBoundBox", offset=-140)
.center(0, height / 2)
.placeSketch(left_cutout)
.cutBlind(-100)
.split(keepBottom=True)
)
exporters.export(left_side, "left_screen_mount.stl")

File diff suppressed because it is too large Load Diff