Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: truePre-merge checks:
|
| Check name | Status | Explanation |
|---|---|---|
| Existing Defaults Unchanged | The check passes. The PR's own commits (bfccecd, 72822e7, e3260ca, on top of the carried #5312 commit 1cd54d3) add a new frame.corner command, its schema types, a redefine entry, a CLI recipe … |
Full details: Existing Defaults Unchanged
-
Explanation
The check passes. The PR's own commits (bfccecd, 72822e7, e3260ca, on top of the carried
#5312commit 1cd54d3) add a newframe.cornercommand, its schema types, aredefineentry, a CLI recipe op, docs, a glossary entry and oracle cases. Nothing removes or changes an existing UX default: - No settings, preferences, keymap or shortcut files are touched. A search of the changed paths for settings/prefs/keymap/shortcut/default returned none. - The only UI change iscrates/ui-egui/src/timeline.rs. It addsFeatureKind::FrameCornerto the existingFrameTrimarm, so corners reuse the Trim/Extend icon. Existing icon mappings are unchanged. -crates/engine/src/cmd/edit.rsadds"frame.corner"to an accepted-constructor list. This is additive. -recipe.rsadds a newframe_cornerarm. Existing ops are unchanged, apart from a comment. - Removed lines in the handler and doc code are refactors (the sharedreplacehelper). The PR says trim behaviour is unchanged, and the removed lines I saw do not alter existing commands or dialogs. - The description statesChanges a default: no. That matches the code I reviewed. Caveat: I audited the PR's own three commits, not the carried#5312bottom commit in full. Its UX content is Trim/Extend, which the description says is separate from this PR. Kernel and geometry changes under solidcore/ are excluded by the check's own wording.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
|
Hello, I am about to complete work on extending the "Frame" dialogue that creates mitre, Butt, coped joints. It will "auto" create joints, typically butt joints for a "frame"... but you can then select individual joints and flip the direction of the butt joint or change the joint to mitre. I was going to create a PR today with the code... but I don't want to tread on your toes... but I think you may like what it does. |
|
@paulgcrabb thanks for asking first, and no toes trodden on: please open your PR. Auto-created joints that you can flip or switch to a mitre sound like what a frame needs. Two things would help us line the two up:
If yours covers this one, we're happy to close #16684 and help test yours instead. We'd rather have one corner path than two. Our hand-calculated cases (square frame, gap, 60° and acute corners with outline anchors) are in this PR and can move over. (ABASTRAN, steel structures.) |
e3260ca to
5f7609f
Compare
Hello, Mine doesn't reference other work, it does all these within it's functionality, it extends the "Frame" dialogue. Typically you apply it to each frame "sketch", and then add addtional "Frames" to build up any tubes that connect frames. This video shows the basic functionality. If you use a "butt" joint then you can select a "joint" and "flip" the direction of the butt joint. Frame_Auto_joint.mp4 |
|
@paulgcrabb thanks for the video, the auto joints with a per-joint flip look really good. That is exactly the part a frame is missing. A suggestion so the two fit together rather than compete: let your dialogue be the interface, and let it write the corner as a feature the rest of the model can read.
Why it matters downstream:
(ABASTRAN, steel structures.) |
… onto main) The eleven commits of tangency-labs#5312 (head 015e7a5) squashed onto current main, so the frame corners can build on them. Karl's code is unchanged except where main moved underneath it: - doc/eval_frame.rs: main's `layout()` (tangency-labs#15726, `locate` and the profile origin) folded into tangency-labs#5312's `Layout`/`Laid`; `member_section` (End Cap, tangency-labs#8606) now reads the member from that layout, before any trim. - doc/eval.rs, doc/model_cache.rs: main's `construct` key and thread runs kept beside `frame_members`. - engine/schema/frame.rs: tangency-labs#5312's trim contract appended to main's frame contracts (tangency-labs#12500); its schema test joins main's test file. - engine/cmd/frame.rs, ui-egui dialogs, workspace, docs/frames.md: End Cap and Trim/Extend side by side. - `resolve_plane_in` takes the component; `Traced` has a `recipe`; `crate::i18n::{tr, format}` became `solidcraft_ui_text::{tr, format}`; the Trim/Extend icon master moved to crates/look/icons with main. Co-Authored-By: Łukasz Dłucik <lukasz.dlucik@abastran.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Sponsored-by: ABASTRAN (https://abastran.com)
frame.corner joins two frame members that meet at their ends: both are rebuilt from their line and profile with the end at the corner cut on the plane halfway between them, the cut faces `gap` apart. It builds on the Trim/Extend member records (find, build, and a replace helper now shared with frame.trim), so corners and trims see each member as it now is. Refused with the reason: not two members, one member twice, parallel members, middle lines that pass apart or cross away from a member's ends, an unknown kind, a gap outside 0..1 m, and members changed later. Tests from hand calculation: a 600 x 400 frame (45 deg cuts, volume from the section area, no overlap left, gap shortening by gap / sqrt 2), a 60 deg corner (60 deg cuts, outer edge 22.5 sqrt 3 past the corner, gap 4 moving each end by 4), width parameter edits, extension, undo/reopen and hostile parameters. Analytic reference case 97-frame-mitre. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Sponsored-by: ABASTRAN (https://abastran.com)
…labs#8452) frame.corner checked that the middle lines cross within the profile's diagonal of each member's end. A profile anchored off its middle moves that crossing by up to (|ob| + |cos θ|·|oa|) / sin θ, which grows as the angle closes: two 45 bars on their inner edges 30° apart meet 22.5 · cot 15° = 83.971 past their lines' ends, and were refused. The check now takes the anchors' move out first, using the exact crossing of the offset lines (derived in a comment at the check), and then requires each line's end within its profile's size of where the lines meet, so a T is still refused. All four end pairs are tried and the nearest taken, since at sharp angles the corner can lie nearer a member's far end. Tests from hand calculation: 15°, 30° and 60° corners of 200 long bars on bottom_left (cut 90° − θ/2 from square, outer edge 45 · cot(θ/2) past the corner, volume 2025 × (200 + 22.5 · cot(θ/2)) each), and an acute T still refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Sponsored-by: ABASTRAN (https://abastran.com)
Register frame_corner in main's feature-kind mappings (kind_key and the type-name lookup), as 9b9bb569c does for frame_trim, and keep BAR45 for the corner tests now that the trim tests that defined it became table driven engine tests in tangency-labs#5312. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Sponsored-by: ABASTRAN (https://abastran.com)
|
@dlucik - I didn't really understand that reply - can you try explaining it again, sorry for wasting your time with this. |
5f7609f to
22f909c
Compare
|
@paulgcrabb not at all, my reply was too dense. Shorter:
If (ABASTRAN, steel structures.) |
|
I will take a look at saving as frame.corner, I don't have any good reason not to. The likelihood of any weldment PR getting merged seems remote - this area seems to be completely ignored by whoever controls the releases, I am going to abandon my work within the next few days and will close my PRs |
|
@dlucik ... today I re-worked #17855 completely to follow the structure for frame elements in #4003, I added frame.multi_trim so I could achieve 3D joints and partial tube intersections that need notches. I am going to "push" in Discord to see if I can get #17855 merged so there is some decent functionality available in weldments that will then get it moving forward. |
|
@dlucik, since #17855 (automatic frame corners) merged,
(Headless render, |
|
Closing this in favour of #17855 — corner treatments now live on Two cases from this PR were not covered by that comparison, as Karl noted in #4003: acute mitres and members whose One gap remains for the steel cut list: the end cuts built in |

Part of #4003. Draft until Karl decides how #5312 goes on (take our carried commit, or refresh #5312 himself; asked in #5312). This replaces #8452, which was closed because it had drifted from
main(#8452 (comment)). The code is the same as there, now on currentmain. It still includes the fix for Karl's acute-angle review (#8452 (comment)).Stacked on #5312 (Trim/Extend). #5312 is still open and does not merge cleanly into
main. So the bottom commit of this branch is #5312 (head015e7a50f) squashed ontomain, with Karl as its author. It is unchanged except wheremainmoved under it; the commit message lists each change. This PR's own change is only the top three commits. When #5312 lands or Karl refreshes it, we drop the bottom commit and rebase. Reviewing only our part:git diff <bottom commit> HEAD.Changes a default: no
Change
Frame members (structural steel laid along sketch lines, #4003) overlap where two of them meet at a corner.
frame.cornerjoins two members that meet at their ends in a mitre. It cuts both ends on the plane halfway between them, so a right-angled corner cuts each at 45°. The members keep their bodies and names.{feature, line}(find) and rebuilt from their line and profile with an end moved to a plane (build). Their records are updated, so corners, trims and later corners see each member as it now is. The tail oftrimthat puts the rebuilt body in place moved into a sharedreplacehelper; trim's behaviour is unchanged.locatefrom Frames: place a member by a profile point that stays put when the size changes #15726) moves that point away from where the lines meet, by up to (|ob| + |cos θ|·|oa|) / sin θ for line offsetsoa,obat an angle θ. The end check allows exactly that move, so off-centre profiles work at any angle.gap(a length expression, default 0, at most 1 m, as for trims) is the distance between the two cut faces. Each face standsgap / 2back from the mitre plane.kind; a gap outside 0…1 m; members changed by later features; an open sketch.kindismitreonly for now. The field exists so butt and end-trim corners land without a format change of their own.CornerParams,FeatureResult),timeline.redefinesupport, CLI recipe opframe_corner, adocs/frames.mdsection and amitreglossary entry. No dialog or ribbon button yet; the timeline shows the Trim/Extend icon. Those come with the UI step.crates/doc/src/format/pending/frame-corners.rs. No kernel files or dependencies change.Validation
Every expected value is a hand calculation. None is measured from a kernel or another program.
bottom_left, the bars outside the angle. Each bar keeps 2025 × (200 + 22.5 · cot(θ/2)); at 30° that is 575,041.5649 mm³. A bar leaving the middle of another at 30° (a T) is still refused.tests/oracle/97-frame-mitre: the 600 × 400 frame with a 2 mm gap, V = 2025 (2000 − 8 √2) = 4,027,089.74 mm³, centre (300, 200, 0).Run on this branch (
e3260caac, onmain87adb81eb), Linux (WSL2, x86_64):cargo test -p solidcraft-engine frame: 186 passed, 0 failed, 1 ignored (among them the 10frame.cornertests incmd::frameand the corner schema test).cargo test -p solidcraft-doc frame: 42 passed, 0 failed.cargo test -p solidcraft-ui-egui frame -- --skip gpu::: 143 passed, 0 failed, 7 ignored.solidcraft-cli oracle tests/oracle/97-frame-mitre: PASS.96-frame-tower(Weldments: trim and extend frame members to other members, planes, or faces #5312): PASS.cargo xtask ci: fmt, assets, layers and clippy (-D warnings) pass. The test step is not fully green here, for the same reasons as on cleanmain. Cleanmain87adb81eb, run on the same machine: 18 tests fail in 6 test binaries (fillets, setback and G2 corners in SMLib and the kernel, the naming corpus, the action matrix, two settings-card tests, one render-queue test, one mirrored-part mesh test). This branch: the same 18, plus two UI tests that pass when run alone (stand_up_offer::an_unknown_exporter_lying_on_its_back_gets_the_note_not_the_dialog,render_workspace::tests::async_path_host::setup_progress_is_estimated_from_the_last_setup_on_the_adapter; 1 of 1 each, timing under load). None of the failing tests is a frame test.Screenshots of the behavior
After (4 mitres, 2 mm gap), from
solidcraft-cli snapshot:After: the 600 × 400 frame of tests/oracle/97-frame-mitre, four mitres with a 2 mm gap.
Integration status
Checked 2026-11-13:
mainat87adb81eb; #5312 open, head015e7a50f, conflicting withmain. Conflicts resolved in the bottom commit (listed in its message):layout()from #15726 folded into #5312's layout,member_section(End Cap, #8606) reads the member from it before any trim, and End Cap and Trim/Extend sit side by side in the commands, dialogs and ribbon.We build steel structures, and keeping every member a body of one part (as #4003 proposes, not a file per member) is the workflow we want too.
(ABASTRAN, steel structures.)
🤖 Generated with Claude Code
Sponsored by ABASTRAN