Fillet the keychain a bit
This commit is contained in:
parent
d326edb680
commit
709fae487f
|
@ -1,3 +1,5 @@
|
||||||
|
use <MCAD/boxes.scad>
|
||||||
|
|
||||||
/* [Keychain] */
|
/* [Keychain] */
|
||||||
|
|
||||||
// overall height
|
// overall height
|
||||||
|
@ -12,6 +14,8 @@ thickness = 4.3;
|
||||||
// diameter of the hole for the key ring
|
// diameter of the hole for the key ring
|
||||||
hole_diameter = 4;
|
hole_diameter = 4;
|
||||||
|
|
||||||
|
fillet = 1;
|
||||||
|
|
||||||
/* [Phone] */
|
/* [Phone] */
|
||||||
|
|
||||||
// angle between the phone and the horizontal, 90=vertical
|
// angle between the phone and the horizontal, 90=vertical
|
||||||
|
@ -31,8 +35,15 @@ support1_thickness = 7;
|
||||||
// the thickness of the second support, behind the phone
|
// the thickness of the second support, behind the phone
|
||||||
support2_thickness = 4.5;
|
support2_thickness = 4.5;
|
||||||
|
|
||||||
|
$fs = 0.1;
|
||||||
|
|
||||||
|
// Polyfill for https://github.com/openscad/MCAD/pull/66
|
||||||
|
module roundedCube_(size, radius, sidesonly) {
|
||||||
|
translate(size/2) roundedBox(size, radius, sidesonly);
|
||||||
|
}
|
||||||
|
|
||||||
module long_piece() {
|
module long_piece() {
|
||||||
translate([-thickness, 0, 0]) cube([thickness, length, height]);
|
translate([-thickness, 0, 0]) roundedCube_([thickness, length, height], fillet, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
module phone() {
|
module phone() {
|
||||||
|
@ -46,7 +57,7 @@ module supports() {
|
||||||
cube_length = cube_length_transverse / sin(angle);
|
cube_length = cube_length_transverse / sin(angle);
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
cube([supports_length, cube_length, height]);
|
translate([-thickness/2, 0, 0]) roundedCube_([thickness/2 + supports_length, cube_length, height], fillet, false);
|
||||||
// cut out phone slot
|
// cut out phone slot
|
||||||
phone();
|
phone();
|
||||||
// cut out back of support2
|
// cut out back of support2
|
||||||
|
|
Loading…
Reference in New Issue