Thingiverse
OpenSCAD Parametric shape generator
4
Download
2
Likes
0
Makes
$fn=12; //resolution
s=2; //unit corner radius
x=30 ; //x translate (unit radius)
x2=0; //x translate (shape radius)
c=3; //num of unit corners =>2
d=360; //num of units (higher=smoother)
//rotation factors
jx=1;
jy=0;
jz=1;
//EXECUTE
for (j=[ 0 : 360/d : 360 ]) //unit rotation
rotate([j*jx,0,0])
rotate([0,j*jy,0])
rotate([0,0,j*jz])
translate([x2,x2,x2])
hull (){ //unit generation
for (i=[ 0: 360/c : 360 ])
rotate([0,0,i ])
translate([x,0,0])
sphere(s);
}
s=2; //unit corner radius
x=30 ; //x translate (unit radius)
x2=0; //x translate (shape radius)
c=3; //num of unit corners =>2
d=360; //num of units (higher=smoother)
//rotation factors
jx=1;
jy=0;
jz=1;
//EXECUTE
for (j=[ 0 : 360/d : 360 ]) //unit rotation
rotate([j*jx,0,0])
rotate([0,j*jy,0])
rotate([0,0,j*jz])
translate([x2,x2,x2])
hull (){ //unit generation
for (i=[ 0: 360/c : 360 ])
rotate([0,0,i ])
translate([x,0,0])
sphere(s);
}
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!