Fix laser render. Re-render all DXF files
This commit is contained in:
parent
f1c2ec94d9
commit
12f88fbb95
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1361,7 +1361,7 @@ module logo () {
|
||||||
|
|
||||||
//exploded_view();
|
//exploded_view();
|
||||||
|
|
||||||
PART = "arduino_nano_electronics_mount";
|
PART = "";
|
||||||
|
|
||||||
//models
|
//models
|
||||||
|
|
||||||
|
@ -1429,7 +1429,7 @@ if (PART == "plate") {
|
||||||
exploded_view();
|
exploded_view();
|
||||||
}
|
}
|
||||||
|
|
||||||
LASER = "";
|
LASER = "panel_cover";
|
||||||
|
|
||||||
//laser
|
//laser
|
||||||
if (LASER == "laser_plate") {
|
if (LASER == "laser_plate") {
|
||||||
|
|
|
@ -11,14 +11,16 @@ listLaser () {
|
||||||
|
|
||||||
renderPart () {
|
renderPart () {
|
||||||
part="${1}"
|
part="${1}"
|
||||||
|
echo "renderPart ${part}"
|
||||||
stl="stl/${SCRIPT_NAME}_${part}.stl"
|
stl="stl/${SCRIPT_NAME}_${part}.stl"
|
||||||
openscad --export-format asciistl -o "${stl}" -D "PART=\"${part}\";" "${SCAD}"
|
openscad --export-format asciistl -o "${stl}" -D "LASER=\"\";" -D "PART=\"${part}\";" "${SCAD}"
|
||||||
}
|
}
|
||||||
|
|
||||||
renderLaser() {
|
renderLaser() {
|
||||||
laser="${1}"
|
laser="${1}"
|
||||||
|
echo "renderLaser ${laser}"
|
||||||
dxf="dxf/${SCRIPT_NAME}_${laser}.dxf"
|
dxf="dxf/${SCRIPT_NAME}_${laser}.dxf"
|
||||||
openscad -o "${dxf}" "LASER=\"${laser}\";" "${SCAD}"
|
openscad -o "${dxf}" -D "PART=\"\";" -D "LASER=\"${laser}\";" "${SCAD}"
|
||||||
}
|
}
|
||||||
|
|
||||||
allParts () {
|
allParts () {
|
||||||
|
@ -27,9 +29,9 @@ allParts () {
|
||||||
renderPart "${part}"
|
renderPart "${part}"
|
||||||
done
|
done
|
||||||
|
|
||||||
LASERs=($(listLaser "${SCAD}"))
|
LASERS=($(listLaser "${SCAD}"))
|
||||||
for laser in "${LASERS[@]}"; do
|
for laser in "${LASERS[@]}"; do
|
||||||
renderLaser
|
renderLaser "${laser}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue