Skip to content

Select: resolve faces and edges from a point or index (#10171) - #10191

Merged
bherbruck merged 2 commits into
tangency-labs:mainfrom
cfaulkingham:codex/select-point-index-10171
Oct 31, 2026
Merged

bherbruck merged 2 commits into
tangency-labs:mainfrom
cfaulkingham:codex/select-point-index-10171

Conversation

@cfaulkingham

@cfaulkingham cfaulkingham commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Change

Fixes #10171.

select.set rejected a face or edge unless scripts supplied both its topology index and a point. It now resolves an omitted index from a world-space point using Measure's pick tolerance, or supplies a point on the geometry when only an index is given. Existing complete selections retain their exact index and point. An invalid partial pick leaves the selection unchanged, including in a mixed batch with add: true.

The command help and MCP documentation describe the accepted inputs. Four regressions in the existing edit tests cover a translated box, curved cylinder faces and edges, a rotated/translated component occurrence, deduplication, and atomic errors. Analytic checks verify a 100 mm² face, a 10 mm edge, and a 10 mm cylinder diameter.

Changes a default: no

Validation

  • The regression failed on the original source with missing field index before implementation.
  • All 50 edit-command tests passed with the fix. Live desktop checks also verified point-only selection, index-only selection, and an invalid point preserving selection and revision.
  • cargo xtask ci ran before the implementation commit. Formatting, asset/icon/licence/list/skill/layer/container checks, workspace Clippy with -D warnings, wasm, and doc tests passed. All 83 native test binaries completed. The native run reported five failures: agent_chat_home_page, params_dialog::tests::a_long_expression_opens_wide_while_edited_and_enter_applies_it, cmd::features::prism_local_tests::a_ring_cut_round_a_counterbored_hole_in_a_chamfered_disc, and robustness seeds 36 and 71. The engine library reported 3,056 passing tests. Full CI is not green.
  • All five failures also reproduce on the unchanged a9e9f8b82 source (the empty claim commit c5b4f46bc), with the same UI assertions, ring-cut volume mismatch, and seed 36/71 geometry differences. No test expectations or geometry goldens were changed.
  • After rebasing onto aeca11704, cargo test --profile ci -p solidcraft-engine --lib cmd::edit::tests:: passed all 50 tests, cargo clippy -p solidcraft-engine --all-targets -- -D warnings passed, and formatting/diff checks passed. Full CI was not repeated after the rebase.

Screenshots of the behavior

In a fresh 10 mm box, run select.set {"items":[{"type":"face","body":"Body1","point":[5,5,10]}]}.

Before: SolidCraft 0.28.0 reports missing field index; no face is selected.

Before: point-only face selection fails with missing field index

After: The fixed build returns selected: 1, resolves face index 5, and highlights the top face.

After: point-only face selection highlights the top face

Integration status

The draft claim was opened and the bot's claim confirmed before implementation. Rebased onto upstream aeca11704 without conflicts before the implementation push. This remains pending maintainer review and CI; no merge has been requested.

@cfaulkingham
cfaulkingham force-pushed the codex/select-point-index-10171 branch from c5b4f46 to aac092f Compare October 31, 2026 18:33
@cfaulkingham
cfaulkingham marked this pull request as ready for review October 31, 2026 18:33
@bherbruck bherbruck added approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) ready to merge reviewed, every ask addressed; merge once CI is green labels Oct 31, 2026
@bherbruck
bherbruck enabled auto-merge October 31, 2026 18:57
@bherbruck bherbruck added approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) and removed approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) labels Oct 31, 2026
@bherbruck
bherbruck added this pull request to the merge queue Oct 31, 2026
Merged via the queue into tangency-labs:main with commit d4144dd Oct 31, 2026
126 of 144 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) ready to merge reviewed, every ask addressed; merge once CI is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

select.set: accept an edge or face by its point alone

2 participants