Repository navigation
refactor: scad/ + reference/ layout, delete reproducible stls - #3
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three changes, one commit each:
just renderreproduces. For each SCAD part with a committed STL, I renderedit and compared volume and bounding-box size. 19 match (size identical, volume within 0.14%) and
are deleted.
Einsy-doors(1.36% volume difference) andprint-fan-support(15.5 mm sizedifference) don't, so their STLs stay and DESIGN.md tracks fixing their SCAD.
printer-parts/,enclosure-parts/andFrame/becomescad/(every part'ssource, with
enclosure/,hotend/andlib/) andreference/(upstream STL, STEP and framefiles with no SCAD yet). Includes now point to
lib/. All 19 parts still render to the geometryof the deleted STLs. The whitespace hook trimmed trailing whitespace in ten moved upstream files;
git diff -wshows no other change.git log --followtraces history back to before the move.usefile can't beopened, and renders the part without it. Pointing
x-carriage.scadat the oldbearing.scadpath passed
just checkbefore this change and fails after it. OpenSCAD 2021.01 and 2026.10.03print the same message.
just checkon the branch: 0 failed, 24 warnings (unchanged). 29 STLs remain, all underreference/stl/except the fan ductscad/hotend/E3DV6.scadimports.