2023-08-21 23:04:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-10-23 15:25:58 +00:00
|
|
|
openscad --export-format=asciistl --enable manifold -o "./stl/${3}" -D"PART=\"${2}\"" "./scad/${1}"
|
2023-08-21 23:04:39 +00:00
|
|
|
echo "Compiled ${3} from ${1}"
|
|
|
|
if [ -f "./scad/common/c14n_stl.py" ]; then
|
|
|
|
python3 ./scad/common/c14n_stl.py "./stl/${3}"
|
|
|
|
echo "Normalized ${3}"
|
|
|
|
fi
|