Commit Graph

68 Commits

Author SHA1 Message Date
Colin 94bf928388 readme: normalize punctuation 2024-02-08 02:02:17 +00:00
Colin c5b282646d document where to buy the ldtek battery 2024-02-08 01:58:55 +00:00
Colin e7bbfa698b readme: simplify intro 2024-02-08 01:51:28 +00:00
Colin ef10754f4b readme: document the build process more 2024-02-08 01:50:11 +00:00
Colin f0a49ae2ab cq_toplevel.py -> main.py 2024-02-08 01:45:50 +00:00
Colin fe05ec2e7c allow CLI configuration of the case battery 2024-02-08 01:39:00 +00:00
Colin 8e5c94894a makefile: make the rules for creating .vtk.js files more clear 2024-02-08 01:19:16 +00:00
Colin a676b68f93 web-viewer: factor out a "renderWindow.js" helper 2024-02-08 01:14:17 +00:00
Colin e82662bab1 web-viewer: remove old console-dumping code 2024-02-08 01:06:43 +00:00
Colin 3d5adcebb3 README: update link to viewer 2024-02-08 01:02:41 +00:00
Colin ee6d874b3c README: add photos 2024-02-08 01:01:20 +00:00
Colin faba843dce web-viewer: check index.html and vtk.js into repo, to make viewable w/o building 2024-02-07 23:34:48 +00:00
Colin 549a48580b readme: add case renderings 2024-02-07 23:32:22 +00:00
Colin a82781e6b1 cq_toplevel: don't assume as_assy=True; some consumers need a single object 2024-02-07 23:31:13 +00:00
Colin 5e8550f5f5 colorize the case and the phone separately when exporting images 2024-02-07 22:49:08 +00:00
Colin 1ef190d932 cq_toplevel: fix "back" image export to actually show the back of the phone 2024-02-07 22:47:48 +00:00
Colin fd9e768fc1 cq_toplevel: allow exporting case in front/back/side orientation 2024-02-07 22:08:46 +00:00
Colin 425bd07d38 cq_toplevel: remove dead code from export_png_image 2024-02-07 21:51:03 +00:00
Colin c19431ba1d replace cq_toplevel.py --export-svg with --export-png, which uses the same render pipeline as the interactive editor 2024-02-07 04:27:41 +00:00
Colin 3afdf11e8f cq_toplevel: memoize the model, to speed up the case where invoked in a way that we dont need to compute it 2024-02-07 01:41:46 +00:00
Colin 67deb480f0 doc: partial work to exporting viewer images as part of build
this approach may be flawed in that headless chromium can't actually load this vtk page, and hence i wouldn't be able to build in a sandbox (i.e. as a nix package)

a better approach may be to export the images via vtk python, though it's unclear if this is possible without a UI either
2024-02-06 23:52:17 +00:00
Colin aac4584e30 flake: include chromium in the dev env to aid browser automation 2024-02-06 23:50:31 +00:00
Colin b5ae83ddcd Makefile: 'cp' instead of 'ln' the html artifacts to avoid funky ways that browsers follow symlinks 2024-02-06 23:50:08 +00:00
Colin 5ed54c4aad Makefile: add rules to generate .svg files as part of `make doc` 2024-02-05 04:20:03 +00:00
Colin e839bb489c Makefile: create build/ directories before generating output 2024-02-05 04:18:16 +00:00
Colin ccc04dbd5a rename: doc-vtk -> web-viewer 2024-02-05 03:58:32 +00:00
Colin 9a35d265ea doc-vtk: move sources out of build/ 2024-02-05 03:57:04 +00:00
Colin 2b414b51ae doc-vtk: fix scrolling 2024-02-05 03:49:22 +00:00
Colin afb41b4483 Makefile: add a `make doc` rule 2024-02-05 03:42:50 +00:00
Colin 2a8b5382ef doc-vtk: also render the case with a phone 2024-02-05 03:42:35 +00:00
Colin e9f5e4aec3 cq_toplevel: implement --render-phone-only CLI option to render just the phone without any case 2024-02-05 03:41:20 +00:00
Colin 5da7a1a8d8 cq_toplevel: implement --export-vtk CLI option 2024-02-05 03:18:39 +00:00
Colin 3027847301 doc-vtk: render the actual pinephone case 2024-02-05 03:18:17 +00:00
Colin c89764b73a build/doc-vtk: proof-of-concept model web renderer
VTK is what cadquery _actually_ uses for its docs, despite claims that it uses TJS
2024-02-03 04:22:30 +00:00
Colin c4d90efedb cq_toplevel: add a --export-svg option 2024-02-03 03:00:21 +00:00
Colin 0a0f9ddcfc pinephone: update volume and power button positions 2024-01-01 05:18:48 +00:00
Colin 78a273bd08 add an option to also render the phone inside the case 2024-01-01 05:18:19 +00:00
Colin f6b866d845 more documentation for print settings 2023-12-31 02:19:20 +00:00
Colin d6803c98e6 case: cut out more of the USB port, for better access 2023-12-30 14:57:32 +00:00
Colin df5106c3ae case: bump the button inset margin to remove artifacts after earlier fillet -> chamfer change 2023-12-30 14:44:26 +00:00
Colin cc5a537893 case: fix camelCase -> snake_case 2023-12-30 14:39:00 +00:00
Colin e305925dc6 case: aux/usb: cut further into the case, safely 2023-12-30 14:38:37 +00:00
Colin 88d17aae8d case: replace the bottom fillet with a chamfer
that should print more reliably
2023-12-30 13:59:39 +00:00
Colin 7ebe77d879 case: replace the button rockers with pillars
these should print better
2023-12-30 12:49:22 +00:00
Colin 60335aedec case: refactor: lift ".solids()" calls to toplevel 2023-12-30 12:18:20 +00:00
Colin 6cccd6f212 case: shift the battery mesh even higher, to account for the battery's own USB input 2023-12-30 10:35:09 +00:00
Colin 2a3a2b6248 case: replace the battery straps with a chain-like pattern
the naive strap implementation works, but pulls the sides of the case down, causing the media buttons to be a bit less precies

hopefully this chain system distributes the tension a little more evenly, and it might even look better
2023-12-30 10:22:45 +00:00
Colin 69bcaebeed document more print results 2023-12-29 10:50:26 +00:00
Colin 086f679323 case: orient for printing 2023-12-28 09:57:22 +00:00
Colin c3b7ee3c44 add a Makefile to export the cadquery to stl and gcode 2023-12-28 09:10:09 +00:00