Build and canonicalize all stl files from scad file. Autogenerate list of models from scad if statement at end of script

This commit is contained in:
Matt McWilliams 2023-05-23 11:50:15 -04:00
parent d86f955bcf
commit da69bf747e
2 changed files with 36 additions and 3 deletions

View File

@ -6,8 +6,14 @@ reset=`tput sgr0`
echo "Building ${green}contact_printer${reset} project..."
#build OpenSCAD models
mkdir -p stl
cat scad/contact_printer.scad | grep "PART ==" | awk -F'==' '{print $2}' | awk -F'"' '{print $2}' | awk -F'"' '{print $1}' | sort > models.txt
while read m; do
echo $m
echo "Rendering $m..."
openscad -o "stl/contact_printer_$m.stl" -D "PART=\"$m\"" scad/contact_printer.scad
python scad/common/c14n_stl.py "stl/contact_printer_$m.stl"
done < models.txt
#run client tests?

View File

@ -1,2 +1,29 @@
light_housing
lamp_plate
2020_tslot_insert
bearing_post_nut
corner_foot
daylight_spool_insert_reinforced
daylight_spool_insert_reinforced_nut
feed_panel_motor_mount
feed_panel_picture
feed_panel_stock
full_gate
gate_holder
idle_roller_half_a
idle_roller_half_b
lamp_LEDs
lamp_cover
lamp_dual
lamp_single
magnetic_coupling
motor_controller_panel
panel
picture_gate
slip_coupling
sound_gate
sprocketed_roller
sprocketed_roller_invert
super_gate
takeup_panel_picture
takeup_panel_picture_motor_mount
takeup_panel_stock
takeup_panel_stock_motor_mount