Skip to content

Instantly share code, notes, and snippets.

@benjamind
Created July 24, 2013 18:07
Show Gist options
  • Save benjamind/6072986 to your computer and use it in GitHub Desktop.
Save benjamind/6072986 to your computer and use it in GitHub Desktop.
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