summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <steven.vasilogianis@gmail.com>2021-10-26 18:23:10 -0400
committerSteven <steven.vasilogianis@gmail.com>2021-10-26 18:24:37 -0400
commit8e25598c8f5b2387fb1836a7dd6be1ed76ce98f3 (patch)
tree4c5af252792ac6d846d64f0c523c99a790f13bd4
parent6f92c0d40fc78e66a2973b9f8c5af9ca3849e2c8 (diff)
parent9543c5d898fac81ca34c06878df6bd4e2b4ca0ab (diff)
Merge branch 'master' of cryptonomic.net:public_git/cubbies
m---------BOSL20
-rw-r--r--cubbies.scad1
-rwxr-xr-xshopenscad.sh13
3 files changed, 9 insertions, 5 deletions
diff --git a/BOSL2 b/BOSL2
Subproject 7431007a6d3d3c969cb4c582917ccefd06422d9 Subproject 9f5214adc0476f29aa9437dc401c01e8f1cd5da
diff --git a/cubbies.scad b/cubbies.scad
index 99b2f4d..0531a7f 100644
--- a/cubbies.scad
+++ b/cubbies.scad
@@ -69,7 +69,6 @@ module both () {
69 cubby_bottom(cubby_width, cubby_depth); 69 cubby_bottom(cubby_width, cubby_depth);
70 left(((cubby_width + cubby_height) / 2) + (tab_height * 2) + gap) 70 left(((cubby_width + cubby_height) / 2) + (tab_height * 2) + gap)
71 cubby_side(cubby_depth, cubby_height, screw_tabs); 71 cubby_side(cubby_depth, cubby_height, screw_tabs);
72}
73 72
74module cubby_bottom (width, depth) { 73module cubby_bottom (width, depth) {
75 rot(90) yrot(90) color("blue") bottom_wall() yrot(90) down(tab_height / 2) { 74 rot(90) yrot(90) color("blue") bottom_wall() yrot(90) down(tab_height / 2) {
diff --git a/shopenscad.sh b/shopenscad.sh
index 4e3de98..996d405 100755
--- a/shopenscad.sh
+++ b/shopenscad.sh
@@ -1,6 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2# parse a .scad file and generate an openscad command with all its var=value's 2# shopenscad.sh: parse a .scad file and generate an openscad command with all
3# parameterized into -D options, which can be overriden with shell variables. 3# its var=value's parameterized into -D options, which can be overriden with
4# shell variables.
4# 5#
5# Usage examples: 6# Usage examples:
6# 7#
@@ -162,6 +163,10 @@ fi
162 163
163#openscad_str="$openscad "$scad_file" "$output_params" -o $(strip_trailing "-" "${values_only}").stl" 164#openscad_str="$openscad "$scad_file" "$output_params" -o $(strip_trailing "-" "${values_only}").stl"
164openscad_str="$openscad '$scad_file' "$output_params" -o '$output_filename'" 165openscad_str="$openscad '$scad_file' "$output_params" -o '$output_filename'"
166#openscad_str="$openscad '$scad_file' "$output_params" -o '${all}.stl'"
167
168# ${open_filename//'/'\\''}
169
165 170
166echo "${openscad_str}" 171echo "${openscad_str}"
167$print_vars || ! $run && ! $interactive && exit 172$print_vars || ! $run && ! $interactive && exit
@@ -175,5 +180,5 @@ if $interactive; then
175 *) run=false ;; 180 *) run=false ;;
176 esac 181 esac
177fi 182fi
178 183#sed -nel <<< "$openscad_str"
179$run && eval "$(echo "$openscad_str")" 184$run && eval "$openscad_str"