2-level kbd mounting pillars

This commit is contained in:
Roberto Alsina 2023-01-27 11:23:04 -03:00
parent a6d3f32797
commit b85ba1f3e1
4 changed files with 101256 additions and 58906 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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