Browse Source

text / icon adjustments

master
wes 9 months ago
parent
commit
b80381d790
  1. 16
      amp_case.py

16
amp_case.py

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

Loading…
Cancel
Save