}
}
+module RearSpeakerAperture(){
+ CaseBase_rhsflip([1]) CaseBase_botflip([1])
+ linextr(-20, 20)
+ mirror([0,1])
+ translate(rearspeaker_pos_bl + bumper)
+ rectfromto(-rearspeaker_gap,
+ rearspeaker_size + rearspeaker_gap);
+}
+
+module RearCameraAperture(){
+ CaseBase_rhsflip([1])
+ mirror([0, 0, 1])
+ linear_extrude(height = 20)
+ mirror([0, 1, 0])
+ translate(bumper)
+ rectfromto(camera_pos_tl, camera_pos_br);
+}
+
module CaseBase(){
AroundEdges(epp3[1], case_th_bottom, 1)
EdgeProfile();
}
// front camera
- CaseBase_rhsflip([1])
- mirror([0, 0, 1])
- linear_extrude(height = 20)
- mirror([0, 1, 0])
- translate(bumper)
- rectfromto(camera_pos_tl, camera_pos_br);
+ RearCameraAperture();
// struts (invisible, because they're buried in the case)
Struts(epp2i[0], epp2i[1] - case_th_bottom, case_th_bottom);
CaseBase_rhsflip([1])
CaseAperture(noisecancelmic_pos, noisecancelmic_dia, 20);
- // rear speaker
- CaseBase_rhsflip([1]) CaseBase_botflip([1])
- linextr(-20, 20)
- mirror([0,1])
- translate(rearspeaker_pos_bl + bumper)
- rectfromto(-rearspeaker_gap,
- rearspeaker_size + rearspeaker_gap);
+ RearSpeakerAperture();
}
}
linear_extrude(height = 50)
mirror([0, 1, 0])
rectfromto([-20, -20],
- camera_pos_br + bumper + [ 5, 5 ]);
+ camera_pos_br + bumper + [ 2, 2 ]);
+}
+
+module TestSelectRearAperture(){
+ minkowski(){
+ union() children();
+ translate([20, 0,0])
+ cube([42, 2, 1], center=true);
+ }
+}
+
+module TestSelectRearSpeaker(){
+ TestSelectRearAperture()
+ RearSpeakerAperture();
}
module TestCamera(){ ////toplevel
union(){
TestSelectFrame();
TestSelectCamera();
+ TestSelectRearSpeaker();
}
}
}