move all scad files to src/ ; orient the case for better printing; fix diamenter/radius screwup for thickness parameter
This commit is contained in:
7
Makefile
7
Makefile
@@ -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
|
||||
|
@@ -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,7 +107,9 @@ module Case()
|
||||
}
|
||||
}
|
||||
|
||||
Case();
|
||||
translate([BodyWidth + Thickness, Thickness, BodyHeight + Thickness])
|
||||
rotate(a=[0, 180, 0])
|
||||
Case();
|
||||
|
||||
// debugging:
|
||||
// _FrontFace();
|
Reference in New Issue
Block a user