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.
Sunday, September 3, 2017
0 - 1 Remapping Functions: Multi Step
/* remapping functions */
for(i=[-0:1/160:1])translate([i,0])square([1/160, (mstep( i,5))]);
function mstep(v,steps=3) = (floor(v*steps)/steps );
No comments:
Post a Comment