more designs

This commit is contained in:
2019-12-22 19:24:11 +01:00
parent 29c39615f8
commit 5b44e0d03c
2 changed files with 52 additions and 12 deletions

View File

@@ -1,18 +1,41 @@
thickness = 2;
toprad = 15;
bottomrad = 10;
radius = 25;
height = 30;
rotate_extrude(angle=360, $fn=360){
polygon([
[toprad, 0],
[bottomrad, height],
[bottomrad+thickness, height],
[toprad+thickness,thickness],
[radius-thickness,thickness],
[radius-thickness,height],
[radius, height],
[radius,0],
[toprad,0]]
);
inside_height = 15;
cube_size = 10;
module holder_round(){
rotate_extrude(angle=360, $fn=360){
polygon([
[toprad, 0],
[bottomrad, inside_height],
[bottomrad+thickness, inside_height],
[toprad+thickness,thickness],
[radius-thickness,thickness],
[radius-thickness,height],
[radius, height],
[radius,0],
[toprad,0]]
);
}
}
module cube_cut(){
translate([5,-cube_size/2, thickness]){
cube([2*cube_size, cube_size, 100]);
}
}
cube_size = 10;
difference(){
holder_round();
for(i=[0:3]){
rotate(90*i, [0,0,1]){
cube_cut();
}
}
}