papercraft/dodecahedron-corner.scad

35 lines
518 B
OpenSCAD
Raw Normal View History

2015-01-26 00:59:03 +01:00
module slot()
{
render() difference()
{
cylinder(r=3, h=10);
translate([0,0,3+10]) cube([3.1,3.1,20], center=true);
}
}
2015-01-26 00:09:17 +01:00
module corner()
{
translate([0,0,2]) rotate([90,0,0])
render() difference()
{
rotate([0,-10,70])
{
2015-01-26 00:59:03 +01:00
rotate([0,31.717371,18.000074]) slot();
rotate([0,121.717476,-53.999996]) slot();
rotate([0,121.717476,90.000000]) slot();
2015-01-26 00:09:17 +01:00
}
translate([0,-12,0]) cube([20,20,20], center=true);
}
2015-01-26 00:59:03 +01:00
cylinder(r=5,h=5);
2015-01-26 00:09:17 +01:00
}
2015-01-26 00:59:03 +01:00
//for(x=[0:2])
2015-01-26 00:09:17 +01:00
{
2015-01-26 00:59:03 +01:00
//for(y=[0:1])
2015-01-26 00:09:17 +01:00
{
translate([x*18,y*18,0]) corner();
}
}