This is my notepad where i collect the useful snippets of OpenSCAD code that i use over and over. Some better curated than others, some formatted for clarity some for efficiency.
Monday, September 11, 2017
0 - 1 Remapping Functions: Arc 2
/* remapping functions */ for(i=[-0:1/160:1])translate([i,0])square([1/160, (arc2( (i)))]); function arc2 (x,n=0) = let(a= n>0? arc2(x,(n-1)):x) clamp( 1-sqrt(1-(a)*(a))); function clamp(a, b = 0, c = 1) = min(max(a, b), c);
No comments:
Post a Comment