2013-05-31 00:51:00 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-06-06 07:55:34 +04:00
|
|
|
rm -f cascade-*.scad
|
2013-05-31 00:51:00 +04:00
|
|
|
echo "include <cascade-A.scad> include <cascade-B.scad> use <cascade-C.scad> use <cascade-D.scad> A(); translate([11,0,0]) B(); translate([22,0,0]) C(); translate([33,0,0]) D();" > cascadetest.scad
|
|
|
|
sleep 0.1
|
|
|
|
echo "module A() { sphere(6); }" > cascade-A.scad
|
|
|
|
sleep 0.1
|
|
|
|
echo "module B() { cube([10,10,10], center=true); }" > cascade-B.scad
|
|
|
|
sleep 0.1
|
|
|
|
echo "module C() { cylinder(h=10, r=6, center=true); }" > cascade-C.scad
|
|
|
|
sleep 0.1
|
|
|
|
echo "module D() { cylinder(h=12, r1=6, r2=0, center=true); }" > cascade-D.scad
|