switch to cylinders rather than cubes
This commit is contained in:
parent
81f2362e51
commit
1065ba38ef
@ -1,34 +1,14 @@
|
||||
module slot()
|
||||
{
|
||||
render() difference()
|
||||
{
|
||||
cylinder(r=3, h=10);
|
||||
translate([0,0,3+10]) cube([3.1,3.1,20], center=true);
|
||||
}
|
||||
thick=7.800000;
|
||||
module connector(len) {
|
||||
render() difference() {
|
||||
rotate([0,0,30]) cylinder(r=thick/2+2, h=2*thick, $fa=60);
|
||||
translate([0,0,thick/2+2]) cylinder(r=thick/2, h=2*thick);
|
||||
}
|
||||
%translate([0,0,0]) cylinder(r=thick/2, h=len*0.48);
|
||||
}
|
||||
|
||||
module corner()
|
||||
{
|
||||
translate([0,0,2]) rotate([90,0,0])
|
||||
render() difference()
|
||||
{
|
||||
rotate([0,-10,70])
|
||||
{
|
||||
rotate([0,31.717371,18.000074]) slot();
|
||||
rotate([0,121.717476,-53.999996]) slot();
|
||||
rotate([0,121.717476,90.000000]) slot();
|
||||
}
|
||||
|
||||
translate([0,-12,0]) cube([20,20,20], center=true);
|
||||
}
|
||||
cylinder(r=5,h=5);
|
||||
}
|
||||
|
||||
|
||||
//for(x=[0:2])
|
||||
{
|
||||
//for(y=[0:1])
|
||||
{
|
||||
translate([x*18,y*18,0]) corner();
|
||||
}
|
||||
sphere(r=5.900000, $fa=60); // 1 0x7fb9f8403fb0
|
||||
rotate([0,90.000000,71.999908]) connector(44.902824);
|
||||
rotate([0,148.282623,-161.999924]) connector(44.902748);
|
||||
rotate([0,90.000000,-35.999943]) connector(44.902859);
|
||||
}
|
||||
|
@ -18,4 +18,4 @@ module dodecahedron(height)
|
||||
}
|
||||
}
|
||||
|
||||
dodecahedron(100);
|
||||
dodecahedron(150);
|
||||
|
@ -313,7 +313,7 @@ int main(void)
|
||||
" render() difference() {\n"
|
||||
" cylinder(r=thick/2+2, h=2*thick);\n"
|
||||
//" translate([0,0,len/2+2]) cube([thick,thick,2*thick]);\n"
|
||||
" translate([0,0,2]) cylinder(r=thick/2, h=2*thick);\n"
|
||||
" translate([0,0,thick/2+2]) cylinder(r=thick/2, h=2*thick);\n"
|
||||
" }\n"
|
||||
//" %%translate([0,0,len*0.48/2]) cube([thick,thick,len*0.48], center=true);\n"
|
||||
" %%translate([0,0,0]) cylinder(r=thick/2, h=len*0.48);\n"
|
||||
|
Loading…
Reference in New Issue
Block a user