This commit is contained in:
Roberto Alsina 2023-02-16 14:57:51 -03:00
parent 64db220a46
commit 31630ab1b0
3 changed files with 13 additions and 21 deletions

View File

@ -3,10 +3,6 @@ from cadquery2 import exporters
cpu_stand_positions = [(0, 0), (58, 0), (58, 48), (0, 48)] cpu_stand_positions = [(0, 0), (58, 0), (58, 48), (0, 48)]
lower_stands = ( lower_stands = cq.Sketch().push(cpu_stand_positions).circle(3, mode="a")
cq.Sketch().push(cpu_stand_positions).circle(3, mode="a")
)
higher_stands = ( higher_stands = cq.Sketch().push(cpu_stand_positions).circle(2.65 / 2, mode="a")
cq.Sketch().push(cpu_stand_positions).circle(2.65 / 2, mode="a")
)

View File

@ -3,10 +3,6 @@ from cadquery2 import exporters
cpu_stand_positions = [(0, 0), (23, 0), (23, 58), (0, 58)] cpu_stand_positions = [(0, 0), (23, 0), (23, 58), (0, 58)]
lower_stands = ( lower_stands = cq.Sketch().push(cpu_stand_positions).circle(3, mode="a")
cq.Sketch().push(cpu_stand_positions).circle(3, mode="a")
)
higher_stands = ( higher_stands = cq.Sketch().push(cpu_stand_positions).circle(2.65 / 2, mode="a")
cq.Sketch().push(cpu_stand_positions).circle(2.65 / 2, mode="a")
)

View File

@ -150,13 +150,13 @@ def model():
# and should be a parameter (TODO) # and should be a parameter (TODO)
.workplaneFromTagged("mid_height") .workplaneFromTagged("mid_height")
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox") .workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")
.center (width/2 - 40, height/2 - 65) .center(width / 2 - 40, height / 2 - 65)
.placeSketch(cpu_holder.lower_stands) .placeSketch(cpu_holder.lower_stands)
.extrude(7) .extrude(7)
# CPU Stands (higher) # CPU Stands (higher)
.workplaneFromTagged("mid_height") .workplaneFromTagged("mid_height")
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox") .workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")
.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) # Battery Stands (lower)
@ -164,13 +164,13 @@ def model():
# and should be a parameter (TODO) # and should be a parameter (TODO)
.workplaneFromTagged("mid_height") .workplaneFromTagged("mid_height")
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox") .workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")
.center (-width/2 + 18, height/2 - 55) .center(-width / 2 + 18, height / 2 - 55)
.placeSketch(battery_holder.lower_stands) .placeSketch(battery_holder.lower_stands)
.extrude(shell_t + 5) .extrude(shell_t + 5)
# Battery Stands (higher) # Battery Stands (higher)
.workplaneFromTagged("mid_height") .workplaneFromTagged("mid_height")
.workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox") .workplane(offset=-thickness / 2, centerOption="CenterOfBoundBox")
.center (-width/2 + 18, height/2 - 55) .center(-width / 2 + 18, height / 2 - 55)
.placeSketch(battery_holder.higher_stands) .placeSketch(battery_holder.higher_stands)
.extrude(shell_t + 8) .extrude(shell_t + 8)
) )