Skip to content

Weldments: one Frame Member feature lays several groups of lines, each placed its own way (#4003) - #8608

Closed
Karl-VonRichter wants to merge 3 commits into
tangency-labs:mainfrom
Karl-VonRichter:feat/frame-member-groups
Closed

Karl-VonRichter wants to merge 3 commits into
tangency-labs:mainfrom
Karl-VonRichter:feat/frame-member-groups

Conversation

@Karl-VonRichter

@Karl-VonRichter Karl-VonRichter commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Lets one Frame Member feature lay several groups of sketch lines in the same structural profile, each group placed (anchor, angle, mirror) and named its own way, so uprights and rails of one frame no longer need separate features. Part of #4003 (frames and weldments).

Changes a default: no

What

frame.member takes groups: each group lists its lines and may give its own anchor, angle, mirror and body_name. A line belongs to one group only.

{"sketch": "Frame", "profile": {"kind": "angle", "width": 60, "height": 40, "thickness": 5},
 "groups": [{"lines": ["l1", "l3"], "anchor": "bottom_left", "body_name": "Rail"},
            {"lines": ["l2", "l4"], "angle": "90 deg", "body_name": "Post"}]}
  • Dialog: a Groups list in Frame Member. New Group starts an empty group and shows it; clicking a group shows and edits it; Remove Group removes the one shown.
  • Saving: one new pending format file (crates/doc/src/format/pending/frame-member-groups.rs). A feature with one group saves in the old flat form, so designs without groups don't change.
  • Names: members keep their names through edits, reopening, and splitting a flat feature into groups.
  • Refusals (nothing changes): empty or malformed groups, a line in two groups, lines/anchor/angle/mirror/body_name given beside groups.
  • New strings are in assets/locales/pending/; docs/frames.md documents groups.

Not in scope: corner treatments (mitre is #8452 by @dlucik). A group is where a later per-group corner setting would go.

Screenshot

One feature, one 60×40×5 angle, two groups: the grey rail laid flat, the blue member turned 90° about its line (solidcraft-cli snapshot of tests/kernel-cases/frames/cov-frame-member-groups-turned-their-own-way, SMLib build).

Two groups of one frame member feature

Tests

On 7471537, merged into main 147b404 (the SMLib kernel) in WSL, --release with SMLib:

  • Kernel-cases rig: new case frames/cov-frame-member-groups-turned-their-own-way (box and volume worked out by hand in expected.json) passes. The engine test that asserted sizes and volume now asserts only names, as the testing rules ask.
  • Engine frame tests: 111 pass. Dialog frame tests: 113 pass. Doc lib: 555 pass, 3 fail; the same 3 fail on main (a_tap_marking_*, a_propagated_chain_that_cannot_build_*).
  • cargo fmt --check, cargo xtask lists, layers, assets, icons, skills, ui-containers, mesh-decisions (no new mesh decision sites) and cargo clippy --workspace --all-targets -D warnings: pass.
  • The branch merges into main without conflicts and builds there, so it isn't rebased.

Full gate on the PR head 7471537 itself (not merged), 2026-11-03/04:

  • cargo xtask ci in WSL Ubuntu: fmt, assets, icons, licences, lists, skills, layers, ui-containers, mesh-decisions, cargo clippy -D warnings, the wasm32 check and doc tests pass. 80 of the 82 test binaries pass with 0 failures, among them the kernel lib (877), the doc lib (481, no failures), ui-egui lib (3258), ui-egui scenarios/ui_layout/icon_audit, the MCP lib, the app binary and all solidcraft-cli tests. The run hit the 2-hour limit before the other two finished:
    • engine lib: run natively on Windows: 2729 pass, 0 fail, 6 ignored.
    • gpu lib: didn't finish here. The path-tracer and denoise tests hang under load on this machine, in WSL (no /dev/dri) and on Windows (AMD OpenGL). This PR doesn't change crates/gpu, and on clean main 4bdffef the three denoise tests pass in 6 s when run on their own. CI's GPU runner is the authority for this binary.
  • cargo xtask web-offline-test: WSL has no Chrome (inside xtask ci it is skipped). On Windows with Edge in place of Chrome, steps 1–10 pass, then step 11 fails with a DevTools connection timeout. This PR changes no web files. A comparison run on clean main couldn't build, because Windows stopped starting compilers (STATUS_DLL_INIT_FAILED) while the machine was overloaded.

🤖 Generated with Claude Code

Karl-VonRichter and others added 2 commits October 29, 2026 11:25
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One Frame Member feature can now lay several groups of lines in the same
profile, each with its own lines, anchor, angle, mirror and body name
(`groups: [{lines, anchor?, angle?, mirror?, body_name?}]`). A feature
with one group saves in the old flat form, so existing designs load and
save unchanged. The dialog gets a group list with New Group and Remove
Group; Edit Feature reopens it with every group. Member names stay with
their lines across groups, reopening and edits.

Design format: crates/doc/src/format/pending/frame-member-groups.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Karl-VonRichter

Copy link
Copy Markdown
Contributor Author

Coordination for the chassis request on #4003: #9793 (tracking #9792) adds explicitly selected circular arcs and an opt-in continuous line/arc path as one physical member. This is separate from groups sharing section/placement settings. It adds a default-false continuous field to FrameMember and uses names[$path] for the single member, preserving identity when traversal changes. The current all-straight-lines default stays unchanged. Please preserve that distinction when these branches integrate; bend-list and cope-template follow-ups are #9795 and #9796.

…it test keeps the names

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Karl-VonRichter Karl-VonRichter changed the title Weldments: Frame Member groups (#4003) Weldments: one Frame Member feature lays several groups of lines, each placed its own way (#4003) Nov 3, 2026
@bherbruck

Copy link
Copy Markdown
Collaborator

Thanks for this! I'm closing older PRs that have gone quiet or drifted from main, since a lot has changed in the last couple of weeks. If you'd still like this in, please open a fresh PR against current main; happy to review it.

@Karl-VonRichter

Copy link
Copy Markdown
Contributor Author

Thanks. This is now a fresh PR against current main: #17672. Since this one, main added locate (#15726), so each group now has its own locate too. The command schema also knows groups now.

Karl-VonRichter added a commit to Karl-VonRichter/solidcraft that referenced this pull request Nov 18, 2026
Let one Frame Member feature share a profile across groups of sketch lines,
with each group keeping its own anchor, locate, angle, mirror and member names.
Preserve the flat save format for one group and stable member names on edits.

Add grouped command input and schema validation with the handler's locate
shape, finite-value and range errors. Keep the existing All Lines row before
the Groups controls for single-group features. Cover placement, edit, format,
schema parity and dialog behavior in the existing test modules.

Replaces stale PR tangency-labs#8608 for tangency-labs#4003. The exact content tree passed the authorized
13-step scoped gate: app build, strict clippy, quick checks and 195 tests.
The listed variable-fillet known failure was excluded; full CI and native UI
evidence remain pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Łukasz Dłucik <lukasz.dlucik@abastran.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
Karl-VonRichter added a commit to Karl-VonRichter/solidcraft that referenced this pull request Nov 19, 2026
Let one Frame Member feature share a profile across groups of sketch lines,
with each group keeping its own anchor, locate, angle, mirror and member names.
Preserve the flat save format for one group and stable member names on edits.

Add grouped command input and schema validation with the handler's locate
shape, finite-value and range errors. Keep the existing All Lines row before
the Groups controls for single-group features. Cover placement, edit, format,
schema parity and dialog behavior in the existing test modules.

Replaces stale PR tangency-labs#8608 for tangency-labs#4003. The exact content tree passed the authorized
13-step scoped gate: app build, strict clippy, quick checks and 195 tests.
The listed variable-fillet known failure was excluded; full CI and native UI
evidence remain pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Łukasz Dłucik <lukasz.dlucik@abastran.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
Karl-VonRichter added a commit to Karl-VonRichter/solidcraft that referenced this pull request Nov 20, 2026
Let one Frame Member feature share a profile across groups of sketch lines,
with each group keeping its own anchor, locate, angle, mirror and member names.
Preserve the flat save format for one group and stable member names on edits.

Add grouped command input and schema validation with the handler's locate
shape, finite-value and range errors. Keep the existing All Lines row before
the Groups controls for single-group features. Cover placement, edit, format,
schema parity and dialog behavior in the existing test modules.

Replaces stale PR tangency-labs#8608 for tangency-labs#4003. The exact content tree passed the authorized
13-step scoped gate: app build, strict clippy, quick checks and 195 tests.
The listed variable-fillet known failure was excluded; full CI and native UI
evidence remain pending.

Integrate upstream per-member Rotate steps with each group's placement,
profile centre, section and pivot. Keep both sets of tests and add a grouped
rotation/end-cap/reload case. The gate results above describe the earlier
source only; this rebased integration still needs scoped verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Łukasz Dłucik <lukasz.dlucik@abastran.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
Karl-VonRichter added a commit to Karl-VonRichter/solidcraft that referenced this pull request Nov 21, 2026
Let one Frame Member feature share a profile across groups of sketch lines,
with each group keeping its own anchor, locate, angle, mirror and member names.
Preserve the flat save format for one group and stable member names on edits.

Add grouped command input and schema validation with the handler's locate
shape, finite-value and range errors. Keep the existing All Lines row before
the Groups controls for single-group features. Cover placement, edit, format,
schema parity and dialog behavior in the existing test modules.

Replaces stale PR tangency-labs#8608 for tangency-labs#4003. The exact content tree passed the authorized
13-step scoped gate: app build, strict clippy, quick checks and 195 tests.
The listed variable-fillet known failure was excluded; full CI and native UI
evidence remain pending.

Integrate upstream per-member Rotate steps with each group's placement,
profile centre, section and pivot. Keep both sets of tests and add a grouped
rotation/end-cap/reload case. The gate results above describe the earlier
source only; this rebased integration still needs scoped verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Łukasz Dłucik <lukasz.dlucik@abastran.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
raykholo pushed a commit to raykholo/solidcraft that referenced this pull request Nov 22, 2026
…7672)

* weldments(feat): place frame members in independent groups

Let one Frame Member feature share a profile across groups of sketch lines,
with each group keeping its own anchor, locate, angle, mirror and member names.
Preserve the flat save format for one group and stable member names on edits.

Add grouped command input and schema validation with the handler's locate
shape, finite-value and range errors. Keep the existing All Lines row before
the Groups controls for single-group features. Cover placement, edit, format,
schema parity and dialog behavior in the existing test modules.

Replaces stale PR tangency-labs#8608 for tangency-labs#4003. The exact content tree passed the authorized
13-step scoped gate: app build, strict clippy, quick checks and 195 tests.
The listed variable-fillet known failure was excluded; full CI and native UI
evidence remain pending.

Integrate upstream per-member Rotate steps with each group's placement,
profile centre, section and pivot. Keep both sets of tests and add a grouped
rotation/end-cap/reload case. The gate results above describe the earlier
source only; this rebased integration still needs scoped verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Łukasz Dłucik <lukasz.dlucik@abastran.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>

* weldments(fix): keep frame group buttons visible and clickable

Give each group chip and action its own line within the existing sized form row.
Use the theme row height and spacing so the default dialog no longer clips
controls after the first chip. Keep All Lines before the group controls.

Check one and three groups at 1280x720 and 800x600 in the existing dialog test
module. Assert visible button bounds and exercise actual clicks that select
groups and add an empty group.

Signed-off-by: Karl Von Richter<karl@embeint.com>

* weldments(fix): preserve frame rotation identity through edits

Match grouped rotations by their path sketch and unordered line IDs so names
and parameter references survive reordering, earlier-group removal and the
canonical single-group flat form. Preserve legacy flat rotation names across
both line-selection changes and switches between existing path sketches.

Refuse non-null flat continuous beside groups even without parameter checks.
Bound the nullable grouped locate schema to the handler's existing coordinate
limits while preserving the parser and its complete error context.

Cover renamed angles, user references, reopening and subsequent angle changes
in the existing frame test module. Retain malformed-locate, boundary, refusal
atomicity and grouped identity assertions.

Integrate with the pinned d799 frame pipeline without replacing its Auto,
corner, pair, fit, cope, gap or later-piece behavior for flat frames. Grouped
None frames use flat placement views with global copy-name offsets, preserve
the shared feature metadata, and route section/pivot and earlier-frame tools
to each member's group. Refuse multi-group joined finishing and point pairs
explicitly; a canonical single group keeps the ordinary flat options.

Retain every main and existing frame assertion, add source regressions for
refusal atomicity, copied names, earlier-group fitting and UI/schema parity,
and adapt rotation identities to optional path sketches. This source-only
rebase has not run Cargo or native checks; the 178-test result remains tied
to the preceding 3fffc53 content tree.

Co-authored-by: Łukasz Dłucik <lukasz.dlucik@abastran.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>

* frame(fix): import grouped parameter error details

Import the existing schema error helper used to report a malformed group.
The hosted compiler reported E0425 after the Auto-frame rebase.

This changes name resolution only; schema behavior and tests are unchanged.
Source formatting and whitespace checks passed; no local build or test ran.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>

---------

Signed-off-by: Karl Von Richter<karl@embeint.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Łukasz Dłucik <lukasz.dlucik@abastran.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
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.

2 participants