3
1
Back

Cap rounded (donut * Written by aubenc @ Thingiverse * This script is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License according to the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work includes a "NOTICE" text file distributed as part of the knurl properties. Module knurl( k_cyl_hg = 12, module knurled_cyl(chg, cod, cwd, csh, cdp, fsh, smt crn=ceil(chg/csh); echo("knurled cylinder max diameter: ", 2*cord); echo("knurled cylinder min diameter: ", 2*cord); echo("knurled cylinder min diameter: ", 2*cord); echo("knurled cylinder max diameter: ", 2*cird); if( fsh < 0 shape(fsh, cird+cdp*smt/100, cord, cfn*4, chg); module shape(hsh, ird, ord, fn4, hg y0=-0.1; y1=0; y2=abs(hsh); y3=hg-abs(hsh); y4=hg; y5=hg+0.1; if ( fsh == 0 cylinder(h=chg, r=cord-cdp*smt/100, $fn=2*cfn, center=false); shape(fsh, cird, cord-cdp*smt/100, cfn*4, chg); module shape(hsh, ird, ord, fn4, hg x0= 0; x1 = hsh > 0 ? Ord : ird; y0=-0.1; y1=0; y2=abs(hsh); y3=hg-abs(hsh); y4=hg; y5=hg+0.1.

New Pull Request