Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
[phone_width, -phone_height] + [-1,+1] * phone_cnr_rad);
}
[phone_width, -phone_height] + [-1,+1] * phone_cnr_rad);
}
-module CaseAperture(pos, dia) { // pass $fn too
+module CaseAperture(pos, dia, $fn) {
theta = 180/$fn;
translate([ pos[0] + bumper[0],
-epp2i[0],
-pos[1] ])
rotate([-90, theta, 0])
theta = 180/$fn;
translate([ pos[0] + bumper[0],
-epp2i[0],
-pos[1] ])
rotate([-90, theta, 0])
- cylinder(r = jack_dia/2 / cos(theta),
+ cylinder(r = dia/2 / cos(theta),
}
// apertures along top edge
}
// apertures along top edge
- CaseAperture(jack_pos, jack_dia, $fn=8);
+ CaseAperture(jack_pos, jack_dia, 8);