|
|
@ -21,7 +21,7 @@ headphone_path, headphone_attribute = svg2paths( |
|
|
|
side_width = 5 |
|
|
|
bottom_width = 5 |
|
|
|
middle_width = 2 |
|
|
|
panel_width = 1.1 |
|
|
|
panel_width = 1.5 |
|
|
|
|
|
|
|
amp_bottom_height = 19 + bottom_width + middle_width # how tall the pcb is |
|
|
|
battery_width = 26 |
|
|
@ -68,7 +68,7 @@ in_text = ( |
|
|
|
Workplane("YZ") |
|
|
|
.workplane(offset=(amp_width / 2) - 3.5) |
|
|
|
.center(-15, -2) |
|
|
|
.text("IN", 5, 1) |
|
|
|
.text("IN", 7, 2) |
|
|
|
.rotateAboutCenter((1, 0, 0), 180) |
|
|
|
) |
|
|
|
|
|
|
@ -76,18 +76,18 @@ out_text = ( |
|
|
|
Workplane("YZ") |
|
|
|
.workplane(offset=(amp_width / 2) - 3.5) |
|
|
|
.center(15, -2) |
|
|
|
.text("OUT", 5, 1) |
|
|
|
.text("OUT", 7, 2) |
|
|
|
.rotateAboutCenter((1, 0, 0), 180) |
|
|
|
) |
|
|
|
|
|
|
|
icon = ( |
|
|
|
Workplane("YZ") |
|
|
|
.workplane(offset=171.5) |
|
|
|
.center(-50, -100) |
|
|
|
.workplane(offset=274.5) |
|
|
|
.center(-50, -175) |
|
|
|
.addSvgPath(headphone_path[0]) |
|
|
|
.extrude(4) |
|
|
|
.extrude(5) |
|
|
|
.val() |
|
|
|
.scale(0.16) |
|
|
|
.scale(0.10) |
|
|
|
) |
|
|
|
|
|
|
|
result = result.cut(in_text) |
|
|
@ -128,7 +128,7 @@ back_screws = ( |
|
|
|
.center(2, 0.0) |
|
|
|
.rect(37, amp_width, forConstruction=True) |
|
|
|
.vertices() |
|
|
|
.cylinder(10, 0.8) |
|
|
|
.cylinder(20, 0.8) |
|
|
|
) |
|
|
|
|
|
|
|
back = back.cut(back_screws) |
|
|
|