Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An OpenSCAD script to produce a physical representation of our statistics.
entries = 30;
dataLength = 96;
prefix = "response-times-15min-";
yScale = 0.4;
xScale = 0.2;
zScale = 0.0008;
union() {
translate([0,-entries*yScale/2,0])
for(i = [0:entries]) {
assign(filename = str(prefix,i,".txt")) {
translate([0,i*yScale,0]) {
scale([xScale,yScale,zScale])
surface(file=filename, center=true, convexity=10);
}
}
}
translate([0,-yScale/2,0])
scale([xScale*dataLength,yScale*(entries+1),0.2])
cube(width=1,height=1,depth=1,center=true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.