move all scad files to src/ ; orient the case for better printing; fix diamenter/radius screwup for thickness parameter

This commit is contained in:
2023-12-22 03:13:32 +00:00
parent a1bb99e1c4
commit 1a07e23f36
7 changed files with 8 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ PRINT_TEMP=220
PRINT_BED_TEMP=65
PRINT_NOZZLE_DIAM=0.4
PRINT_FILA_DIAM=1.75
# XXX: Slic2r doesn't always set the bed temperature correctly. fix by specifying it also for the first layer.
# XXX: Slic3r doesn't always set the bed temperature correctly. fix by specifying it also for the first layer.
SLIC3R_FLAGS=\
--temperature $(PRINT_TEMP) \
--first-layer-temperature $(PRINT_TEMP) \
@@ -15,7 +15,7 @@ SLIC3R_FLAGS=\
all: build/case.stl build/case.gcode
build/%.stl: %.scad *.scad
build/%.stl: src/%.scad src/*.scad
mkdir -p build
openscad $< -o $@
@@ -24,6 +24,7 @@ build/%.stl: %.scad *.scad
install:
mkdir -p $(SHAREDIR)
install -m644 case.stl $(SHAREDIR)
install -m644 build/case.stl $(SHAREDIR)
install -m644 build/case.gcode $(SHAREDIR)
.PHONY: all install

View File

@@ -71,7 +71,7 @@ module Case()
color("DarkSlateGray")
difference() {
minkowski() {
sphere(d=Thickness);
sphere(r=Thickness);
// Phone(volume=false, power=false, camera=false);
PhoneBody();
}
@@ -107,6 +107,8 @@ module Case()
}
}
translate([BodyWidth + Thickness, Thickness, BodyHeight + Thickness])
rotate(a=[0, 180, 0])
Case();
// debugging: