Compare commits
No commits in common. "98e1e731630621db8bce6c4c60569b8f17317151" and "010927c5caaf9e47c937ed5c730796047ddd91d7" have entirely different histories.
98e1e73163
...
010927c5ca
|
@ -192,7 +192,7 @@ module bearing_roller () {
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//translate([RailSpacing / 2, -90 - 10, 21.5]) rotate([0, 90, 0])
|
//translate([RailSpacing / 2, -90 - 10, 21.5]) rotate([0, 90, 0])
|
||||||
//bearing_roller();
|
bearing_roller();
|
||||||
//bearing_roller();
|
//bearing_roller();
|
||||||
|
|
||||||
//debug
|
//debug
|
||||||
|
@ -201,9 +201,3 @@ module bearing_roller () {
|
||||||
|
|
||||||
//translate([ThreadedRodSpacing / 2, 40, 0]) rotate([90, 0, 0]) color("blue") NEMA17();
|
//translate([ThreadedRodSpacing / 2, 40, 0]) rotate([90, 0, 0]) color("blue") NEMA17();
|
||||||
//translate([-ThreadedRodSpacing / 2, 40, 0]) rotate([90, 0, 0]) color("blue") NEMA17();
|
//translate([-ThreadedRodSpacing / 2, 40, 0]) rotate([90, 0, 0]) color("blue") NEMA17();
|
||||||
|
|
||||||
PART = "rail_end";
|
|
||||||
|
|
||||||
if (PART == "rail_end") {
|
|
||||||
rail_end();
|
|
||||||
}
|
|
|
@ -1,44 +1,45 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
FILES=(
|
|
||||||
arri_s
|
|
||||||
bellows
|
|
||||||
cpc_connectors
|
|
||||||
mcopy_rails
|
|
||||||
mcopy_projector
|
|
||||||
)
|
|
||||||
|
|
||||||
openscadPart () {
|
openscadPart () {
|
||||||
openscad -o "./stl/${3}" -D"PART=\"${2}\"" "./scad/${1}"
|
openscad -o "./stl/${3}" -D"PART=\"${2}\"" "./scad/${1}"
|
||||||
echo "Compiled ${3} from ${1}"
|
|
||||||
if [ -f "./scad/common/c14n_stl.py" ]; then
|
if [ -f "./scad/common/c14n_stl.py" ]; then
|
||||||
python3 ./scad/common/c14n_stl.py "./stl/${3}"
|
python3 ./scad/common/c14n_stl.py "./stl/${3}"
|
||||||
echo "Normalized ${3}"
|
echo "Normalized ${3}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
listParts () {
|
# arri s parts
|
||||||
cat "${1}" | grep 'PART ==' | grep -v 'debug' | awk -F'"' '{print $2}'
|
if [[ "${1}" == "" ]] || [[ "${1}" == "arri_s" ]]; then
|
||||||
}
|
openscadPart "arri_s.scad" "drive_coupling_DC_connector" "arri_s_drive_coupling_DC_connector.stl"
|
||||||
|
openscadPart "arri_s.scad" "drive_coupling_DC" "arri_s_drive_coupling_DC.stl"
|
||||||
|
openscadPart "arri_s.scad" "animation_motor_DC_cap" "arri_s_animation_motor_DC_cap.stl"
|
||||||
|
openscadPart "arri_s.scad" "animation_motor_DC" "arri_s_animation_motor_DC.stl"
|
||||||
|
openscadPart "arri_s.scad" "animation_motor" "arri_s_animation_motor.stl"
|
||||||
|
openscadPart "arri_s.scad" "animation_motor_cap" "arri_s_animation_motor_cap.stl"
|
||||||
|
openscadPart "arri_s.scad" "drive_coupling" "arri_s_drive_coupling.stl"
|
||||||
|
openscadPart "arri_s.scad" "bellows_camera_board_adapter" "arri_s_bellows_camera_board_adapter.stl"
|
||||||
|
openscadPart "arri_s.scad" "bellows_camera_board" "arri_s_bellows_camera_board.stl"
|
||||||
|
|
||||||
allParts () {
|
openscadPart "arri_s_mount.scad" "mount" "arri_s_mount.stl"
|
||||||
PARTS=($(listParts "scad/${1}.scad"))
|
|
||||||
for part in "${PARTS[@]}"; do
|
|
||||||
echo opencadPart "${1}.scad" "${part}" "${1}_${part}.stl"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ "${1}" == "all" ]]; then
|
|
||||||
for file in "${FILES[@]}"; do
|
|
||||||
allParts "${file}"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
if [ -f "scad/${1}.scad" ]; then
|
|
||||||
allParts "${1}"
|
|
||||||
elif [[ "${1}" != "" ]]; then
|
|
||||||
echo "File scad/${1}.scad not found"
|
|
||||||
exit 2
|
|
||||||
else
|
|
||||||
echo "Please provide a target to compile or use \"all\""
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# mcopy mono 99 projector controller
|
||||||
|
if [[ "${1}" == "" ]] || [[ "${1}" == "projector_controller" ]]; then
|
||||||
|
openscadPart "projector_controller.scad" "electronics_mount" "mcopy_mono99_electronics_mount.stl"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# cpc connector
|
||||||
|
if [[ "${1}" == "" ]] || [[ "${1}" == "cpc_connectors" ]]; then
|
||||||
|
openscadPart "cpc_connectors.scad" "cpc_9pin_plug" "cpc_connector_9pin_plug.stl"
|
||||||
|
openscadPart "cpc_connectors.scad" "cpc_9pin_plug_collar" "cpc_connector_9pin_plug_collar.stl"
|
||||||
|
openscadPart "cpc_connectors.scad" "cpc_9pin_socket" "cpc_connector_9pin_socket.stl"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${1}" == "" ]] || [[ "${1}" == "bellows" ]]; then
|
||||||
|
openscadPart "bellows.scad" "bellows_lens_board" "bellows_lens_board.stl"
|
||||||
|
openscadPart "bellows.scad" "bellows_lens_board_magnetic" "bellows_lens_board_magnetic.stl"
|
||||||
|
openscadPart "bellows.scad" "bellows_camera_board" "bellows_camera_board.stl"
|
||||||
|
openscadPart "bellows.scad" "bellows_camera_board_magnetic" "bellows_camera_board_magnetic.stl"
|
||||||
|
openscadPart "bellows.scad" "camera_mount" "bellows_camera_mount.stl"
|
||||||
|
openscadPart "bellows.scad" "bellows_board_magnetic" "bellows_board_magnetic.stl"
|
||||||
|
fi
|
Loading…
Reference in New Issue