Skip to content

refactor: scad/ + reference/ layout, delete reproducible stls - #3

Merged
CameronBrooks11 merged 3 commits into
mainfrom
refactor/layout
Nov 16, 2026
Merged

CameronBrooks11 merged 3 commits into
mainfrom
refactor/layout

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Three changes, one commit each:

  • Delete the STLs just render reproduces. For each SCAD part with a committed STL, I rendered
    it and compared volume and bounding-box size. 19 match (size identical, volume within 0.14%) and
    are deleted. Einsy-doors (1.36% volume difference) and print-fan-support (15.5 mm size
    difference) don't, so their STLs stay and DESIGN.md tracks fixing their SCAD.
  • New layout. printer-parts/, enclosure-parts/ and Frame/ become scad/ (every part's
    source, with enclosure/, hotend/ and lib/) and reference/ (upstream STL, STEP and frame
    files with no SCAD yet). Includes now point to lib/. All 19 parts still render to the geometry
    of the deleted STLs. The whitespace hook trimmed trailing whitespace in ten moved upstream files;
    git diff -w shows no other change. git log --follow traces history back to before the move.
  • The render check fails on a missing include. OpenSCAD only warns when a use file can't be
    opened, and renders the part without it. Pointing x-carriage.scad at the old bearing.scad
    path passed just check before this change and fails after it. OpenSCAD 2021.01 and 2026.10.03
    print the same message.

just check on the branch: 0 failed, 24 warnings (unchanged). 29 STLs remain, all under
reference/stl/ except the fan duct scad/hotend/E3DV6.scad imports.

For each SCAD part with a committed STL, I rendered the SCAD and
compared volume and bounding-box size with the STL. These 19 match:
size identical, volume within 0.14% (the X ends differ by 0.10-0.14%
because of the hand-merged flange change), so the STLs are deleted:

  Einsy-base, Einsy-hinges, endstop-block, Extruder-cable-clip,
  Heatbed-cable-clip, Heatbed-cable-clip_for_8mm_sleeve,
  heatbed-cable-cover, heatbed-cable-cover-clip,
  LCD-cover-ORIGINAL-MK3, lcd-supports, PSU-cover-MK3, x-carriage,
  x-carriage-back, x-end-idler, x-end-motor, z-axis-bottom,
  z-axis-top, z-screw-cover, feet-bracket-ext18mm

Two don't match and stay until their SCAD does: Einsy-doors (1.36%
less volume in the render) and print-fan-support (15.5 mm smaller in
one dimension). DESIGN.md tracks them.
printer-parts/, enclosure-parts/ and Frame/ become two folders: scad/
for every part's source, and reference/ for upstream's files that
have no SCAD source yet (STL, STEP, and the frame DXFs and PDF).

The shared modules (polyholes, bearing, x-end) move to scad/lib/,
which just check skips as libraries, and the parts that use them now
use lib/<file>. Every part renders to the same geometry as before: the
19 STLs deleted in the previous commit still match their renders.

The whitespace hook trimmed trailing whitespace in ten of the moved
upstream files; git diff -w shows no other change to them.
OpenSCAD only warns when a use/include file can't be opened, and
renders the part without the geometry it provides. Pointing
x-carriage.scad at a wrong path for bearing.scad passed just check
with "Can't open library" and "Ignoring unknown module" warnings; it
now fails. OpenSCAD 2021.01 and 2026.10.03 print the same wording.
@CameronBrooks11
CameronBrooks11 merged commit 1c06f71 into main Nov 16, 2026
4 checks passed
@CameronBrooks11
CameronBrooks11 deleted the refactor/layout branch November 16, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant