Created
July 24, 2013 18:07
-
-
Save benjamind/6072986 to your computer and use it in GitHub Desktop.
An OpenSCAD script to produce a physical representation of our statistics.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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