update
Former-commit-id: bdede6ed1b6f578f2ef046c338caf02d0b29d453 [formerly 7187de361b53e9c8ec121df379b762f2db736ea2] Former-commit-id: 447d58460fbbfd05ffe08428a1288e392637561d
This commit is contained in:
21
_embed/public/ace/demo/kitchen-sink/docs/scad.scad
Normal file
21
_embed/public/ace/demo/kitchen-sink/docs/scad.scad
Normal file
@@ -0,0 +1,21 @@
|
||||
// ace can highlight scad!
|
||||
module Element(xpos, ypos, zpos){
|
||||
translate([xpos,ypos,zpos]){
|
||||
union(){
|
||||
cube([10,10,4],true);
|
||||
cylinder(10,15,5);
|
||||
translate([0,0,10])sphere(5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
union(){
|
||||
for(i=[0:30]){
|
||||
# Element(0,0,0);
|
||||
Element(15*i,0,0);
|
||||
}
|
||||
}
|
||||
|
||||
for (i = [3, 5, 7, 11]){
|
||||
rotate([i*10,0,0])scale([1,1,i])cube(10);
|
||||
}
|
||||
Reference in New Issue
Block a user