From fe3ce11970c7a484e8cdc7b1aa77f0843c8bf23a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 13 Feb 2016 17:27:48 +0000 Subject: [PATCH] cable-splice-clamp: length again partially reverts 80554664 --- cable-splice-clamp.scad | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/cable-splice-clamp.scad b/cable-splice-clamp.scad index 55f219a..92213cf 100644 --- a/cable-splice-clamp.scad +++ b/cable-splice-clamp.scad @@ -85,5 +85,42 @@ module CrossSectionDemo(){ ////toplevel } } +strap_width = 4 + 0.5; +total_len = 70; + +strap_count = 2; + +strap_wall_h = 1.5; +strap_wall_l = 2.0; + +writing_dx = total_len / 3; +writing_dy = basew*2; + +module HalfClamp(){ ////toplevel + difference(){ + rotate([90,0,0])rotate([0,90,0]){ + linear_extrude(height=total_len) + CrossSection(); + + for (i=[0 : strap_count]){ + if (i*2 != strap_count) { + translate([0, 0, + total_len * (i + 0.5) / (strap_count + 1)]) + for (m=[0,1]){ + mirror([0,0,m]) + translate([0,0, strap_width/2]) + linear_extrude(height=strap_wall_l) + CrossSection(strap_wall_h); + } + } + } + } + + translate([0, -basew, top]) + Commitid_BestCount([writing_dx, writing_dy]); + } +} + //CrossSection(); -CrossSectionDemo(); +//CrossSectionDemo(); +HalfClamp(); -- 2.30.2