From: Ian Jackson Date: Wed, 10 Feb 2016 01:39:36 +0000 (+0000) Subject: filamentspool: Move FilamentCup commitid to very outside, with new FilamentCupPositive X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cf422612d5746988fc11fbadcae42542f7f48a43;p=reprap-play.git filamentspool: Move FilamentCup commitid to very outside, with new FilamentCupPositive --- diff --git a/filamentspool.scad b/filamentspool.scad index 4890fa2..73daad1 100644 --- a/filamentspool.scad +++ b/filamentspool.scad @@ -349,14 +349,9 @@ module ArmEnd(length=armend_length){ ////toplevel module FilamentCupHandle(){ pawlusewidth = ratchetpawl-ratchettoothsmoothr*2; mirror([0,1,0]) { - difference(){ - union(){ - cube([stalklength, stalkwidth, prongthick]); - translate([stalklength, stalkwidth/2, 0]) - cylinder(r=stalkwidth/2, h=prongthick, $fn=20); - } - Commitid_BestCount([stalklength, stalkwidth]); - } + cube([stalklength, stalkwidth, prongthick]); + translate([stalklength, stalkwidth/2, 0]) + cylinder(r=stalkwidth/2, h=prongthick, $fn=20); translate([ratchettoothsmoothr, stalkwidth, 0]) { minkowski(){ cylinder($fn=20,r=ratchettoothsmoothr, h=1); @@ -379,7 +374,7 @@ module FilamentCupCup(){ } } -module FilamentCup() { ////toplevel +module FilamentCupPositive() { FilamentCupHandle(); gapy = prongwidth; @@ -434,6 +429,14 @@ module FilamentCup() { ////toplevel } } +module FilamentCup() { ////toplevel + difference(){ + FilamentCupPositive(); + translate([0, -stalkwidth, 0]) + Commitid_BestCount_M([stalklength - stalkwidth, stalkwidth]); + } +} + module CupSecuringClipSolid(w,d,h1,h2){ rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) { polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);