diff --git a/build.sh b/build/build.sh similarity index 70% rename from build.sh rename to build/build.sh index c7c5db4..7a6840c 100755 --- a/build.sh +++ b/build/build.sh @@ -17,10 +17,9 @@ run () { "$@" } -basedir=$(dirname $0) +basedir=$(dirname $0)/.. -mkdir -p build cat $1 | jq -r ".parameterSets | keys | .[]" \ | while read param; do - run openscad -o "build/chip-${param}.stl" -p "$basedir/$1" -P "${param}" chip.scad + run openscad -o "chip-${param}.stl" -p "$basedir/$1" -P "${param}" chip.scad done diff --git a/chip.png b/chip.png new file mode 100644 index 0000000..de3333a Binary files /dev/null and b/chip.png differ diff --git a/full-circle.json b/full-circle.json deleted file mode 100644 index 75950b4..0000000 --- a/full-circle.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameterSets": { - "full-circle-1": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "1" - }, - "full-circle-2": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "2" - }, - "full-circle-5": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "5" - }, - "full-circle-10": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "10" - }, - "full-circle-20": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "20" - }, - "full-circle-25": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "25" - }, - "full-circle-50": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "50" - }, - "full-circle-100": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "100" - }, - "full-circle-250": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "250" - }, - "full-circle-500": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "500" - }, - "full-circle-1000": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "1000" - }, - "full-circle-2000": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "2000" - }, - "full-circle-5000": { - "diameter": 39, - "height": 3.5, - "sides": 360, - "holes": 6, - "text": "5000" - } - } -} \ No newline at end of file diff --git a/full-hex.json b/full-hex.json deleted file mode 100644 index 9b01393..0000000 --- a/full-hex.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameterSets": { - "full-hex-1": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "1" - }, - "full-hex-2": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "2" - }, - "full-hex-5": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "5" - }, - "full-hex-10": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "10" - }, - "full-hex-20": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "20" - }, - "full-hex-25": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "25" - }, - "full-hex-50": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "50" - }, - "full-hex-100": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "100" - }, - "full-hex-250": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "250" - }, - "full-hex-500": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "500" - }, - "full-hex-1000": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "1000" - }, - "full-hex-2000": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "2000" - }, - "full-hex-5000": { - "diameter": 39, - "height": 3.5, - "sides": 6, - "holes": 6, - "text": "5000" - } - } -} \ No newline at end of file diff --git a/mini-circle.json b/mini-circle.json deleted file mode 100644 index ce32b83..0000000 --- a/mini-circle.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameterSets": { - "mini-circle-1": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "1" - }, - "mini-circle-2": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "2" - }, - "mini-circle-5": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "5" - }, - "mini-circle-10": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "10" - }, - "mini-circle-20": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "20" - }, - "mini-circle-25": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "25" - }, - "mini-circle-50": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "50" - }, - "mini-circle-100": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "100" - }, - "mini-circle-250": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "250" - }, - "mini-circle-500": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "500" - }, - "mini-circle-1000": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "1000" - }, - "mini-circle-2000": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "2000" - }, - "mini-circle-5000": { - "diameter": 22, - "height": 2, - "sides": 360, - "holes": 4, - "text": "5000" - } - } -} \ No newline at end of file diff --git a/mini-hex.json b/mini-hex.json deleted file mode 100644 index 6e4377a..0000000 --- a/mini-hex.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "parameterSets": { - "mini-hexagon-1": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "1" - }, - "mini-hexagon-2": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "2" - }, - "mini-hexagon-5": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "5" - }, - "mini-hexagon-10": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "10" - }, - "mini-hexagon-20": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "20" - }, - "mini-hexagon-25": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "25" - }, - "mini-hexagon-50": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "50" - }, - "mini-hexagon-100": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "100" - }, - "mini-hexagon-250": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "250" - }, - "mini-hexagon-500": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "500" - }, - "mini-hexagon-1000": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "1000" - }, - "mini-hexagon-2000": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "2000" - }, - "mini-hexagon-5000": { - "diameter": 22, - "height": 2, - "sides": 6, - "holes": 3, - "text": "5000" - } - } -} \ No newline at end of file