From 015a90be4c6b6b99a803ba39f72d80dd1ff1efa7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 22 Aug 2012 23:56:38 +0100 Subject: [PATCH] 10254 remove # debugging --- th-10254/MendelSpindle.scad | 49 ++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/th-10254/MendelSpindle.scad b/th-10254/MendelSpindle.scad index ce7a444..3c23eea 100644 --- a/th-10254/MendelSpindle.scad +++ b/th-10254/MendelSpindle.scad @@ -10,30 +10,57 @@ include // Libs.scad is @ http://www.thingiverse.com/thing:6021 include // FilamentSpool.scad is @ http://www.thingiverse.com/thing:8317 -module MendelSpindle() +module MendelSpindle(mainwidth=6,clipwidth=10,extenddist=40) { difference() { union() { - translate([0,-2,0]) Spindle(10.5,11,8,0,0,0,5,0,[1.5,18,5]); - translate([-65,0,0]) cube([70,10,10]); - translate([-60,9,0]) rotate([0,0,150]) ClipBar(); + translate([0,-3,0]) cube([10,15,12]); + intersection() { + translate([0,-2,0]) + Spindle(10.5,11,8,0,0,0,5,0,[1.5,18,5]); + translate([5,-3,0]) + cube([50,15,12]); + } + translate([-extenddist-5,0,0]) + cube([extenddist+10,9,mainwidth]); + translate([-extenddist,9,0]) rotate([0,0,150]) + ClipBar(mainwidth=mainwidth, + clipwidth=clipwidth); + } + translate([9,3.8,-4]) minkowski(){ + cylinder(r=1.5,h=40); + cube([20,1,0.1]); } - } } -module ClipBar() +module clipbarcylinders(r,h) { + rotate([0,0,-13]) + { + translate([7,11.1,-1]) cylinder(r=r,h=h); + translate([7+37.5,11.1,-1]) cylinder(r=r,h=h); + } +} + +module ClipBar(mainwidth,clipwidth) { difference() { - cube([57,10,10]); - rotate([0,0,-13]) - { - translate([7,11.1,-1]) cylinder(r=4,h=12); - translate([7+37.5,11.1,-1]) cylinder(r=4,h=12); + union() { + cube([57,10,mainwidth]); + intersection() { + clipbarcylinders(r=6,h=clipwidth); + cube([57,10,clipwidth]); + } + minkowski() { + rotate([0,0,3.5]) translate([-7,1,0]) + cube([27,0.1,mainwidth-1]); + cylinder(r=4,h=1); + } } + translate([0,0,-1]) clipbarcylinders(r=3.5,h=clipwidth+2); } } -- 2.30.2