Advertisement
sinned6915

scad-stl-gen

Jan 13th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. #!/bin/bash
  2. APP_STR="/cygdrive/c/Program Files/OpenSCAD/openscad.exe"
  3. # for depth in 0 1 2 3 4; do
  4. #  for gap in 0 1 2; do
  5. #    for join in Off Seam Join; do
  6. for depth in 0 0.5 1  ; do
  7.   for gap in 0 0.5 1 2 4 ; do
  8.     for join in Off Seam Full ; do
  9. # this works manually
  10. #  "/cygdrive/c/Program Files/OpenSCAD/openscad.exe" -o  "$(cygpath -w ./test_cubes-3.stl)" "$(cygpath -w ./test_cubes-3.scad)"  -D LABEL1=1 -D LABEL2=2 -D LABEL3=3
  11. #
  12. #     "${APP_STR%}" -DLABEL1=DEPTH=$depth -DLABEL2=GAP=$gap -DLABEL3=JOIN=$join -o cube$depth$gap$join.stl "$(cygpath -w ./test_cubes-3.scad)"
  13.       "${APP_STR%}" -o cube$depth$gap$join.stl "$(cygpath -w ./test_cubes-3.scad)" -D LABEL1=$depth -D LABEL2=$gap -D LABEL3=\"$join\"  
  14.     done
  15.   done
  16. done
  17. #_EOF_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement