readme: add case renderings

This commit is contained in:
2024-02-07 23:32:22 +00:00
parent a82781e6b1
commit 549a48580b
5 changed files with 14 additions and 3 deletions

View File

@@ -81,11 +81,16 @@ build/web-viewer/index.html: doc.in/index.html build/web-viewer/vtk.js build/web
mkdir -p build/web-viewer
cp $< $@
%.png: cq_toplevel.py src/*.py
%_case.png: cq_toplevel.py src/*.py
mkdir -p "$(@D)"
./cq_toplevel.py --export-png $@
%_case_with_phone.png: cq_toplevel.py src/*.py
mkdir -p "$(@D)"
./cq_toplevel.py --render-phone --export-png $@
doc: build/web-viewer/index.html build/images/pinephone_case.png
readme: readme_files/pinephone_front_case_with_phone.png readme_files/pinephone_back_case_with_phone.png readme_files/pinephone_side_case_with_phone.png
doc: readme build/web-viewer/index.html
clean:
rm -rf build
@@ -98,5 +103,5 @@ build/case.stl: cq_toplevel.py src/*.py
mkdir -p $(shell dirname $@)
slic3r $(SLIC3R_FLAGS) $< -o $@
.PHONY: all install clean
.PHONY: all install readme doc clean

View File

@@ -4,6 +4,12 @@ this first model.
status: case is usable, but the print is rough and requires a good deal of manual cleaning due to aggressive fillets/overhangs.
## Images
![front view](readme_files/pinephone_front_case_with_phone.png)
![side view](readme_files/pinephone_side_case_with_phone.png)
![back view](readme_files/pinephone_back_case_with_phone.png)
## Prerequisites
- run `nix develop` to enter a dev environment.
- or manually install these dependencies:

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB