Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ roadmap; read it before changing a part.
## Layout

```
printer-parts/scad/ # part source; polyholes.scad is a library, hotend/ holds mockups
printer-parts/stl/ # upstream's STLs, including parts with no SCAD source yet
printer-parts/step/ # upstream's STEP files for the parts not in SCAD
enclosure-parts/ # enclosure parts (scad/ and stl/)
Frame/ # upstream's frame DXFs and extrusion spec
scripts/render.sh # renders every tracked .scad, used by just render and just check
scad/ # every part's source; each file renders on its own
scad/enclosure/ # enclosure parts
scad/hotend/ # hotend mockups, not printed
scad/lib/ # modules the parts `use`; not rendered on their own
reference/stl/ # upstream STLs with no matching SCAD yet
reference/step/ # upstream's STEP files
reference/frame/ # upstream's frame DXFs and extrusion spec
scripts/render.sh # renders every part, used by just render and just check
```

## Commands
Expand All @@ -38,12 +40,13 @@ just test # skipped: there are no geometry tests yet

## Conventions

- A new part is a `.scad` file that renders on its own. A file that only defines modules for
others to `include` goes in the `libraries` list in `scripts/render.sh`, or `just check` fails on
its empty top-level object.
- A new part is a `.scad` file under `scad/` that renders on its own. A file that only defines
modules for parts to `use` goes in `scad/lib/`, which `just check` skips.
- Dimensions in millimetres. Put the values a builder would change (sizes, clearances, hardware)
as named variables at the top of the file.
- Build from OpenSCAD solids. An imported STL is a reference to compare against, not geometry.
- Don't commit an STL that `just render` reproduces. Once a part's SCAD reproduces its upstream
STL, delete the STL.
- Keep upstream's history and file names intelligible: a change to an upstream part is a commit
on that file, not a copy under a new name.
- Credit every part not written here in README.md, with its author, source link and licence.
Expand Down
5 changes: 3 additions & 2 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ The X axis, Z axis, Einsy case and cable clips already have SCAD source from ups

- Clear the OpenSCAD warnings `just check` reports in upstream files (unused `center` arguments,
ambiguous cylinder parameters, reversed ranges).
- Decide whether the upstream STLs for parts with SCAD source stay committed or come from
`just render`.
- Make `Einsy-doors.scad` and `print-fan-support.scad` reproduce upstream's STLs, then delete the
STLs. Upstream's `Einsy-doors` STL has 1.4% more volume than the SCAD renders, and its
`print-fan-support` STL differs in size by 15.5 mm.

## Open questions

Expand Down
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,35 @@ just check # every part renders without error (what CI runs)

## Layout

| Path | What |
| ------------------------ | --------------------------------------------------------------------------- |
| `printer-parts/scad/` | OpenSCAD source of the printed parts |
| `printer-parts/stl/` | upstream's STLs, including parts that have no SCAD source yet |
| `printer-parts/step/` | upstream's STEP files for the parts not in SCAD |
| `enclosure-parts/` | parts for the enclosure |
| `Frame/` | upstream's frame drawings (DXF) and extrusion spec (PDF) |
| Path | What |
| ------------------ | ----------------------------------------------------------------------- |
| `scad/` | OpenSCAD source of every part; `just render` makes the STLs |
| `scad/enclosure/` | parts for the enclosure |
| `scad/hotend/` | hotend mockups to design round; not printed |
| `scad/lib/` | modules the parts `use` |
| `reference/stl/` | upstream STLs for parts whose SCAD doesn't exist or doesn't match yet |
| `reference/step/` | upstream's STEP files |
| `reference/frame/` | upstream's frame plate drawings (DXF) and extrusion spec (PDF) |

## What differs from the MK3S

- **Folders.** `Printed-Parts/SCAD` and `Printed-Parts/STL` are `printer-parts/scad` and
`printer-parts/stl`, with Unix line endings.
- **Folders.** Upstream's `Printed-Parts/SCAD` is `scad/` (with `scad/lib/` for the shared
modules), and its STL, STEP and frame files are under `reference/`. STLs that `just render`
reproduces are deleted rather than kept.
- **X ends.** Tarek Loubani's parametric X-end flange,
[upstream PR #3](https://github.com/prusa3d/Original-Prusa-i3/pull/3) (2016, still open there),
merged by hand, with the lead-screw hole at 13.2 mm.
- **Frame foot.** `printer-parts/scad/foot.scad`, mine: a tapered foot with a 2020-extrusion
- **Frame foot.** `scad/foot.scad`, mine: a tapered foot with a 2020-extrusion
dovetail, modelled on the MK3S foot. Print it in TPU or another flexible filament.
- **Enclosure foot.** `enclosure-parts/scad/feet-bracket.scad`, mine: the enclosure's foot bracket
- **Enclosure foot.** `scad/enclosure/feet-bracket.scad`, mine: the enclosure's foot bracket
rebuilt from OpenSCAD solids, with an `extension` parameter (18 mm by default) that makes it taller
so the front and rear can be levelled using the original bolts.
- It reproduces Prusa Research's `feet_bracket-R1` from
[Original-Prusa-Enclosure](https://github.com/prusa3d/Original-Prusa-Enclosure) (GPL-3.0), also
on Printables as
[Enclosure printable parts](https://www.printables.com/model/251931-enclosure-printable-parts).
- `enclosure-parts/stl/feet-bracket-original.stl` is that STL, unchanged, for comparison.
- **Hotend mockups** in `printer-parts/scad/hotend/`, for designing parts round an E3D V6:
- `reference/stl/feet-bracket-original.stl` is that STL, unchanged, for comparison.
- **Hotend mockups** in `scad/hotend/`, for designing parts round an E3D V6:
- `hotend.scad`: thehans's
[E3D V6 Heatsink mockup for OpenSCAD](https://www.thingiverse.com/thing:2420969), Creative
Commons Attribution.
Expand Down
Loading
Loading