Integrated CPU holder
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import cadquery2 as cq
|
||||
from cadquery2 import exporters
|
||||
import cpu_holder
|
||||
|
||||
# Base for the notebook. Basically a kbd base that extends back
|
||||
# as much as possible
|
||||
@ -77,6 +78,16 @@ screw_holes = cq.Sketch().push(mounting_pillar_positions).circle(3, mode="a")
|
||||
usb_in = cq.Sketch().trapezoid(13, 5.5, 90, mode="a")
|
||||
|
||||
|
||||
# CPU stand pins
|
||||
lower_stands = (
|
||||
cq.Sketch().push([(0, 0), (58, 0), (58, 23), (0, 23)]).circle(3, mode="a")
|
||||
)
|
||||
|
||||
higher_stands = (
|
||||
cq.Sketch().push([(0, 0), (58, 0), (58, 23), (0, 23)]).circle(2.65 / 2, mode="a")
|
||||
)
|
||||
|
||||
|
||||
def model():
|
||||
return (
|
||||
cq.Workplane("XY")
|
||||
@ -132,6 +143,20 @@ def model():
|
||||
.placeSketch(screw_holes)
|
||||
# 13 is 20-7 (screw thread length - threaded insert depth)
|
||||
.cutBlind(thickness - 13)
|
||||
# CPU Stands (lower)
|
||||
# The -65, -40 is the position of the CPU,
|
||||
# and should be a parameter (TODO)
|
||||
.workplaneFromTagged("mid_height")
|
||||
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")
|
||||
.center (width/2 - 40, height/2 - 65)
|
||||
.placeSketch(cpu_holder.lower_stands)
|
||||
.extrude(7)
|
||||
# CPU Stands (higher)
|
||||
.workplaneFromTagged("mid_height")
|
||||
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")
|
||||
.center (width/2 - 40, height/2 - 65)
|
||||
.placeSketch(cpu_holder.higher_stands)
|
||||
.extrude(11)
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user