Modify TRRS holder

This opens it up on the inner side.
This commit is contained in:
Martin Frost 2024-09-06 14:08:49 +02:00
parent e9423dbcf0
commit f6ccde7848
5 changed files with 37 additions and 11 deletions

View File

@ -1086,16 +1086,32 @@ def trrs_holder():
def trrs_holder_hole():
rect_hole = cube(*TRRS_HOLDER_SIZE)
x, y, z = TRRS_HOLDER_SIZE
rect_hole = cube(x, y, z)
rect_hole = translate(
-TRRS_HOLDER_SIZE[0] / 2, -TRRS_HOLDER_SIZE[1], -TRRS_HOLDER_SIZE[2] / 2,
-x / 2, -y - 1, -z / 2,
)(rect_hole)
rect2 = cube(x, y, z - 3)
rect2 = translate(
-x / 2 + 5, -y - 1, -z / 3,
)(rect2)
cylinder_hole = cylinder(*TRRS_HOLE_SIZE, segments=30)
cylinder_hole = rotate_x(90)(cylinder_hole)
cylinder_hole = translate(0, 5, 0)(cylinder_hole)
return translate(*trrs_key_holder_position())(union(rect_hole, cylinder_hole))
return translate(
*trrs_key_holder_position()
)(
union(
union(
rect_hole,
rect2,
),
cylinder_hole
)
)
usb_holder_hole_dims = [9, 8, 3.5]

View File

@ -1,4 +1,4 @@
// Generated by SolidPython 0.4.8 on 2024-09-05 12:17:03
// Generated by SolidPython 0.4.8 on 2024-09-06 14:03:09
mirror(v = [-1, 0, 0]) {
@ -16302,9 +16302,14 @@ mirror(v = [-1, 0, 0]) {
}
translate(v = [-55.537912117550164, 27.807955392906404, 9.0000000000]) {
union() {
translate(v = [-3.0000000000, -11.0000000000, -3.5000000000]) {
union() {
translate(v = [-3.0000000000, -12.0000000000, -3.5000000000]) {
cube(size = [6.0000000000, 11.0000000000, 7.0000000000]);
}
translate(v = [2.0000000000, -12.0000000000, -2.3333333333]) {
cube(size = [6.0000000000, 11.0000000000, 4.0000000000]);
}
}
translate(v = [0, 5, 0]) {
rotate(a = 90, v = [1, 0, 0]) {
cylinder($fn = 30, h = 10.0000000000, r = 2.6000000000);

View File

@ -1,4 +1,4 @@
// Generated by SolidPython 0.4.8 on 2024-09-05 12:17:03
// Generated by SolidPython 0.4.8 on 2024-09-06 14:03:10
mirror(v = [-1, 0, 0]) {

View File

@ -1,4 +1,4 @@
// Generated by SolidPython 0.4.8 on 2024-09-05 12:17:03
// Generated by SolidPython 0.4.8 on 2024-09-06 14:03:09
difference() {
@ -16301,9 +16301,14 @@ difference() {
}
translate(v = [-55.537912117550164, 27.807955392906404, 9.0000000000]) {
union() {
translate(v = [-3.0000000000, -11.0000000000, -3.5000000000]) {
union() {
translate(v = [-3.0000000000, -12.0000000000, -3.5000000000]) {
cube(size = [6.0000000000, 11.0000000000, 7.0000000000]);
}
translate(v = [2.0000000000, -12.0000000000, -2.3333333333]) {
cube(size = [6.0000000000, 11.0000000000, 4.0000000000]);
}
}
translate(v = [0, 5, 0]) {
rotate(a = 90, v = [1, 0, 0]) {
cylinder($fn = 30, h = 10.0000000000, r = 2.6000000000);

View File

@ -1,4 +1,4 @@
// Generated by SolidPython 0.4.8 on 2024-09-05 12:17:03
// Generated by SolidPython 0.4.8 on 2024-09-06 14:03:09
difference() {