Fix screen holder split, add cutout for kbd cable
This commit is contained in:
parent
f01e5a92ee
commit
db5e874d91
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -38,11 +38,14 @@ board_cutout = cq.Sketch().trapezoid(
|
|||||||
mode="a",
|
mode="a",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
kbd_cable_hole = cq.Sketch().trapezoid(15, 5, 90, mode="a").vertices().fillet(1)
|
||||||
|
|
||||||
|
|
||||||
def model():
|
def model():
|
||||||
return (
|
return (
|
||||||
cq.Workplane("XY")
|
cq.Workplane("XY")
|
||||||
.workplane().tag("mid_height")
|
.workplane()
|
||||||
|
.tag("mid_height")
|
||||||
.box(width, 59, 62)
|
.box(width, 59, 62)
|
||||||
.faces(">Z")
|
.faces(">Z")
|
||||||
.transformed(rotate=(45, 0, 0))
|
.transformed(rotate=(45, 0, 0))
|
||||||
@ -79,35 +82,35 @@ def model():
|
|||||||
.placeSketch(board_cutout)
|
.placeSketch(board_cutout)
|
||||||
.cutBlind(-5)
|
.cutBlind(-5)
|
||||||
# Fillet top of the object
|
# 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")
|
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 = (
|
right_side = (
|
||||||
model()
|
model()
|
||||||
.faces("<Z")
|
.faces(">X")
|
||||||
.workplane(centerOption="CenterOfBoundBox", offset=3)
|
.workplane(centerOption="CenterOfBoundBox", offset=-140)
|
||||||
.center(-width / 2, height / 2)
|
.center(0, height / 2)
|
||||||
.placeSketch(left_cutout)
|
.split(keepTop=True)
|
||||||
.cutBlind(-100)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
exporters.export(right_side, "right_screen_mount.stl")
|
exporters.export(right_side, "right_screen_mount.stl")
|
||||||
|
|
||||||
left_side = (
|
left_side = (
|
||||||
model()
|
model()
|
||||||
.faces("<Z")
|
.faces(">X")
|
||||||
.workplane(centerOption="CenterOfBoundBox", offset=3)
|
.workplane(centerOption="CenterOfBoundBox", offset=-140)
|
||||||
.center(0, height / 2)
|
.center(0, height / 2)
|
||||||
.placeSketch(left_cutout)
|
.split(keepBottom=True)
|
||||||
.cutBlind(-100)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
exporters.export(left_side, "left_screen_mount.stl")
|
exporters.export(left_side, "left_screen_mount.stl")
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user