Browse Source

add top

master
wes 9 months ago
parent
commit
31fa4767c4
  1. 12
      amp_case.py

12
amp_case.py

@ -10,13 +10,15 @@ from svgpathtools import svg2paths
import cadquery as cq
import cqmore
amp_bottom_height = 16 # how tall the pcb is
amp_bottom_height = 16 # how tall the pcb is
battery_width = 26
battery_height = 17
amp_width = 50
amp_length = 60
amp_height = battery_height + amp_bottom_height + 4
side_width = 3
result = Workplane().box(amp_length, amp_width, 2)
result = (
@ -24,7 +26,13 @@ result = (
.center(0, -(amp_width / 2))
.line(0, amp_width, forConstruction=True)
.vertices()
.box(amp_length, 3, amp_height)
.box(amp_length, side_width, amp_height)
)
result = (
result.workplane(offset=(amp_height / 2) + side_width * 2)
.center(0, amp_width / 2)
.box(amp_length, amp_width + side_width, side_width)
)
try:

Loading…
Cancel
Save