From 968d427c6e45c4e11b2a0e678796917aef19594d Mon Sep 17 00:00:00 2001 From: daniel watson Date: Tue, 16 Jan 2018 00:29:16 -0800 Subject: [PATCH] clarify 3030 with comments and clearer variable --- mk2-haribo-spool-holder.scad | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/mk2-haribo-spool-holder.scad b/mk2-haribo-spool-holder.scad index 90fdcde..909ae66 100644 --- a/mk2-haribo-spool-holder.scad +++ b/mk2-haribo-spool-holder.scad @@ -11,21 +11,30 @@ diagonal = sqrt(pow(30/2, 2) + pow(30/2, 2)); opening_width = 8; inner_block = 12; -corner_block_inner = (30 - 16.5) / 2; +outer_block = (30 - 16.5) / 2; wall = 2; $fn = 40; module arm_half(){ + // inner block square(inner_block / 2); + + // diagonal arms connecting inner block to outer blocks rotate(45) { square([diagonal - wall, wall / 2]); } - translate([x / 2 - corner_block_inner, y / 2 - corner_block_inner]) { - square(corner_block_inner - wall); } - translate([opening_width / 2 + wall, y / 2 - wall]) { - square([(x - opening_width) / 2 - 2 * wall, wall]); - translate([0, wall / 2]){ - circle(d = wall); } } + + // outer block, without the wall part since wall has rounded corner + translate([x / 2 - outer_block, y / 2 - outer_block]) { + square(outer_block - wall); } + + // outer arms covering the opening + translate([(opening_width + wall) / 2, y / 2 - wall]) { + square([(x - opening_width - wall) / 2 - wall, wall]); } + // rounded part at entrace to inside + translate([(opening_width + wall) / 2, (y - wall) / 2]){ + circle(d = wall); } + // rounded part around outside of extrusion translate([x / 2 - wall, y / 2 - wall]) { circle(wall); } } -- 2.30.2