Adjust headphone cutout to slope in. Adjust USB-C cutout Z by 1mm.

This commit is contained in:
Dejvino 2021-01-11 14:04:19 +01:00
parent 383bcd084e
commit 118fe703b5

View File

@ -15,7 +15,7 @@ MODEL_HARNESS_RIGHT=2;
MODEL_HARNESS_TOP=3; MODEL_HARNESS_TOP=3;
MODEL_HARNESS_SLIDER_FRONT=4; MODEL_HARNESS_SLIDER_FRONT=4;
MODEL_HARNESS_SLIDER_BACK=5; MODEL_HARNESS_SLIDER_BACK=5;
export=0; // [0:5] export=1; // [0:5]
function is_not_export() = is_undef(export) || export == 0; function is_not_export() = is_undef(export) || export == 0;
function is_export() = !is_not_export(); function is_export() = !is_not_export();
function is_model_strict(m) = is_export() && export == m; function is_model_strict(m) = is_export() && export == m;
@ -207,10 +207,11 @@ module phone_harness() {
// -- RIGHT -- // -- RIGHT --
module headphones_cutout() { module headphones_cutout() {
$fn = $preview ? 10 : 30; $fn = $preview ? 10 : 30;
d=8.8; d1=8.8;
d2=14;
p=[ps.x/2, ps.y/2-24, -0.88]; p=[ps.x/2, ps.y/2-24, -0.88];
h=100; h=30;
translate(p) yrot(90) down(10) cylinder(h=h, d=d); translate(p) yrot(90) down(10) cylinder(h=h, d1=d1, d2=d2);
} }
module right_cutout() { module right_cutout() {
headphones_cutout(); headphones_cutout();
@ -218,7 +219,7 @@ module phone_harness() {
// -- LEFT -- // -- LEFT --
module usbc_cutout() { module usbc_cutout() {
s=[100, 20, 6]; s=[20, 20, 7];
left(ps.x/2) down(2) cubi(s, fillet=1); left(ps.x/2) down(2) cubi(s, fillet=1);
} }
module left_cutout() { module left_cutout() {