2-level kbd mounting pillars
This commit is contained in:
parent
a6d3f32797
commit
b85ba1f3e1
File diff suppressed because it is too large
Load Diff
80312
notebook_nueva/model.stl
80312
notebook_nueva/model.stl
File diff suppressed because it is too large
Load Diff
@ -22,24 +22,34 @@ ti_radius = 2.35
|
|||||||
ti_depth = 6.25
|
ti_depth = 6.25
|
||||||
|
|
||||||
# Positions are determined by measuring the keyboard
|
# Positions are determined by measuring the keyboard
|
||||||
|
|
||||||
|
kbd_pillar_positions = [
|
||||||
|
(18.25, -16),
|
||||||
|
(142.5, -25.5),
|
||||||
|
(kbd_width - 20, -16),
|
||||||
|
(23.5, -79.5),
|
||||||
|
(145.5, -82.5),
|
||||||
|
(kbd_width - 19, -79.5),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
# mounting holes
|
# mounting holes
|
||||||
kbd_pillars = (
|
kbd_pillars = (
|
||||||
cq.Sketch()
|
cq.Sketch()
|
||||||
.push(
|
.push(kbd_pillar_positions)
|
||||||
[
|
|
||||||
(18.25, -16),
|
|
||||||
(142.5, -25.5),
|
|
||||||
(kbd_width - 20, -16),
|
|
||||||
(23.5, -79.5),
|
|
||||||
(145.5, -82.5),
|
|
||||||
(kbd_width - 19, -79.5),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
.circle(2.2, mode="a")
|
.circle(2.2, mode="a")
|
||||||
# Holes for self-tapping screws
|
# Holes for self-tapping screws
|
||||||
.circle(1.1, mode="s")
|
.circle(1.1, mode="s")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
kbd_lower_pillars = (
|
||||||
|
cq.Sketch()
|
||||||
|
.push(kbd_pillar_positions)
|
||||||
|
.circle(4, mode="a")
|
||||||
|
# Holes for self-tapping screws
|
||||||
|
.circle(1.1, mode="s")
|
||||||
|
)
|
||||||
|
|
||||||
# These are placed where convenient, and are used to join the top and bottom
|
# These are placed where convenient, and are used to join the top and bottom
|
||||||
# parts of the case.
|
# parts of the case.
|
||||||
# Measured from top-left corner OUTSIDE
|
# Measured from top-left corner OUTSIDE
|
||||||
@ -131,6 +141,10 @@ def model():
|
|||||||
.tag("sloped")
|
.tag("sloped")
|
||||||
.placeSketch(kbd_pillars)
|
.placeSketch(kbd_pillars)
|
||||||
.extrude(-1000)
|
.extrude(-1000)
|
||||||
|
.workplaneFromTagged("sloped")
|
||||||
|
.workplane(offset=-3)
|
||||||
|
.placeSketch(kbd_lower_pillars)
|
||||||
|
.extrude(-1000)
|
||||||
# Remove the excess extrusion
|
# Remove the excess extrusion
|
||||||
.workplaneFromTagged("mid_height")
|
.workplaneFromTagged("mid_height")
|
||||||
.transformed(offset=cq.Vector(0, 0, -thickness / 2))
|
.transformed(offset=cq.Vector(0, 0, -thickness / 2))
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user