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.
Friday, September 1, 2017
0 - 1 Remapping Functions: Step
/* remapping functions */
for(i=[-0:1/160:1])translate([i,0])square([1/160, (step( (i),2/3,0.1))]);
function step(v,bias,start=0, end=1) = v>=bias?end:start;
No comments:
Post a Comment