Integrated Battery holder
This commit is contained in:
parent
4624a2531f
commit
64db220a46
12
notebook_nueva/battery_holder.py
Normal file
12
notebook_nueva/battery_holder.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import cadquery2 as cq
|
||||||
|
from cadquery2 import exporters
|
||||||
|
|
||||||
|
cpu_stand_positions = [(0, 0), (58, 0), (58, 48), (0, 48)]
|
||||||
|
|
||||||
|
lower_stands = (
|
||||||
|
cq.Sketch().push(cpu_stand_positions).circle(3, mode="a")
|
||||||
|
)
|
||||||
|
|
||||||
|
higher_stands = (
|
||||||
|
cq.Sketch().push(cpu_stand_positions).circle(2.65 / 2, mode="a")
|
||||||
|
)
|
File diff suppressed because it is too large
Load Diff
46562
notebook_nueva/model.stl
46562
notebook_nueva/model.stl
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,7 @@
|
|||||||
import cadquery2 as cq
|
import cadquery2 as cq
|
||||||
from cadquery2 import exporters
|
from cadquery2 import exporters
|
||||||
|
|
||||||
|
import battery_holder
|
||||||
import cpu_holder
|
import cpu_holder
|
||||||
|
|
||||||
# Base for the notebook. Basically a kbd base that extends back
|
# Base for the notebook. Basically a kbd base that extends back
|
||||||
@ -157,6 +159,20 @@ def model():
|
|||||||
.center (width/2 - 40, height/2 - 65)
|
.center (width/2 - 40, height/2 - 65)
|
||||||
.placeSketch(cpu_holder.higher_stands)
|
.placeSketch(cpu_holder.higher_stands)
|
||||||
.extrude(11)
|
.extrude(11)
|
||||||
|
# Battery Stands (lower)
|
||||||
|
# The +18, -55 is the position of the battery system,
|
||||||
|
# and should be a parameter (TODO)
|
||||||
|
.workplaneFromTagged("mid_height")
|
||||||
|
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")
|
||||||
|
.center (-width/2 + 18, height/2 - 55)
|
||||||
|
.placeSketch(battery_holder.lower_stands)
|
||||||
|
.extrude(shell_t + 5)
|
||||||
|
# Battery Stands (higher)
|
||||||
|
.workplaneFromTagged("mid_height")
|
||||||
|
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")
|
||||||
|
.center (-width/2 + 18, height/2 - 55)
|
||||||
|
.placeSketch(battery_holder.higher_stands)
|
||||||
|
.extrude(shell_t + 8)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user