From e3a19e569b5bf3cb9266314ee3438247206158cb Mon Sep 17 00:00:00 2001 From: Bart Moyaers Date: Tue, 7 Jan 2020 14:37:09 +0100 Subject: [PATCH] add controller ring --- controller_ring.scad | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 controller_ring.scad diff --git a/controller_ring.scad b/controller_ring.scad new file mode 100644 index 0000000..7c0563a --- /dev/null +++ b/controller_ring.scad @@ -0,0 +1,58 @@ +outside_radius = 21.4/2; +thickness = 1; +height = 5; + +step_size = 1; + +$fn = 100; + +module ring(){ + linear_extrude(height) + difference(){ + circle(outside_radius); + circle(outside_radius-thickness); + } +} + +module myshape(){ + horizontal = 6; + depth = 3; + my_height = 5; + rotate([-45,0,0]) + translate([0,0,-my_height/2]) + linear_extrude(my_height) + polygon([[-horizontal, 0],[horizontal,0],[0,depth]]); +} + +pattern_size = 1.75; +offs = 0.2; +cube_height = 20; +count = 4; +difference(){ + ring(); + for(step=[0:step_size:360]){ + h = cos(step*count) * pattern_size; + rotate(step) + translate( + [0, + outside_radius-thickness/2, + h+height-pattern_size+cube_height/2+offs]) + cube(size=[1,thickness+0.5,cube_height], center=true); + } +} + + +// difference(){ +// ring(); +// steps = 4; +// for(step=[0:steps]){ +// rotate(step*360/steps){ +// translate([0,8,5.5]){ +// myshape(); +// } +// } +// } +// } + +// translate([0,8,5.5]) +// myshape(); \ No newline at end of file