diff --git a/mini-tube.json b/mini-tube.json new file mode 100644 index 0000000..d81959e --- /dev/null +++ b/mini-tube.json @@ -0,0 +1,42 @@ +{ + "parameterSets": + { + "1ml-50mm2": { + "volume_ml": "1", + "cross_section_mm2": "50", + "marks_small_ml": "0.1", + "marks_medium_ml": "0.5", + "text_size_mm": "3" + }, + "2ml-50mm2": { + "volume_ml": "2", + "cross_section_mm2": "50", + "marks_small_ml": "0.1", + "marks_medium_ml": "0.5", + "text_size_mm": "3" + }, + "2ml-100mm2": { + "volume_ml": "2", + "cross_section_mm2": "100", + "text_size_mm": "5" + }, + "5ml-100mm2": { + "volume_ml": "5", + "cross_section_mm2": "100", + "text_size_mm": "5" + }, + "5ml-333mm2": { + "volume_ml": "5", + "cross_section_mm2": "333", + "marks_small_ml": "0.5", + "text_size_mm": "8" + }, + "10ml-333mm2": { + "volume_ml": "10", + "cross_section_mm2": "333", + "marks_small_ml": "0.5", + "text_size_mm": "8" + } + }, + "fileFormatVersion": "1" +} diff --git a/mini-tube.sh b/mini-tube.sh new file mode 100755 index 0000000..b9b1e6c --- /dev/null +++ b/mini-tube.sh @@ -0,0 +1,11 @@ +#!/bin/zsh + +cd ${0%/*} + +if command -v openscad >/dev/null 2>&1; then + openscad=openscad +else + openscad=(flatpak run --filesystem=$PWD org.openscad.OpenSCAD) +fi + +