Skip to content

Delete Face takes the faces an open-gap refusal names - #25775

Draft
dudedagger42 wants to merge 5 commits into
tangency-labs:mainfrom
dudedagger42:lf25/g3-stranded
Draft

dudedagger42 wants to merge 5 commits into
tangency-labs:mainfrom
dudedagger42:lf25/g3-stranded

Conversation

@dudedagger42

@dudedagger42 dudedagger42 commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #25774 (open), which is based on main. This PR's change is its last commit.

Refs #16449, #17548.

The open-gap refusal already finds the faces a pick leaves standing with nothing to close against (#23699: the last side of a wall whose top, ends and other side are picked). It checks that the heal works with them added, and it asks the user to "Select them too". delete_faces_grown now takes those faces instead. It tries them before #25774's corner-solve guess, because the refusal has already healed with them. delete_faces keeps its refusal word for word, and the refactor (stranded_faces) gives the same messages. The app names these faces: "(the faces left with nothing to close against)".

Test: the_grown_entry_takes_the_wall_side_left_standing, in crates/kernel/src/delete_face.rs. The i18n test covers the new wording.

Repro with the rule switched off (445bf6e): fails. The test gets ([9], Some(Emptied)) instead of the named side as Stranded.

Tested on this PR's head commit, on the build server:

  • kernel delete_face: 66 passed
  • ui-egui delete_face_grown_note delete_face_dialog_marks: 2 passed
  • fmt for kernel, doc and ui-egui: rc 0
  • kernel clippy: rc 0

Changes a default: no — a Delete Face pick refused today with "Select them too" now also deletes the faces that refusal names; delete_faces is unchanged

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
Pre-merge checks: Passed 1

Check name Status Explanation
Existing Defaults Unchanged Passed The check fails only for a changed UX default: a default setting or preference, the usual-use behaviour of a command or tool, the UI's default layout or behaviour, or shortcuts. It explicitly exempts …
Full details: Existing Defaults Unchanged

Explanation

The check fails only for a changed UX default: a default setting or preference, the usual-use behaviour of a command or tool, the UI's default layout or behaviour, or shortcuts. It explicitly exempts changed kernel or geometry results, including a case that now builds or is now refused. Evidence from the PR's own commit (b859072, the only commit that changes this PR's code): - crates/kernel/src/delete_face.rs: adds a Growth::Stranded rule to delete_faces_grown. A Delete Face pick that delete_faces refused with the open-gap message can now build by also deleting the named faces. This is a kernel result change (a refused case now builds) and is exempt under the check. - The same rule is tried before Growth::Emptied for open-gap refusals. This can change which faces a previously successful grown delete removes. This is also a kernel result change and is exempt. - The plain refusal text in delete_faces is unchanged. The refactor keeps the message word for word. - crates/doc/src/eval.rs and crates/ui-egui/src/i18n.rs: add a note for the new growth kind. The note text is new and additive. Existing note strings are unchanged. - assets/locales/pending/delete-face-grown.json: adds new translation keys only. No existing string is changed. - The grow flag in crates/doc/src/document.rs (serde default and opt-in behaviour) and its evaluation in crates/doc/src/eval.rs are not changed by this commit. The default for Delete Face's grow setting is therefore the same as before. - No change to layout, shortcuts, preferences, or other UI defaults appears in the diff. The description's "Changes a default: no" is consistent with the code. The only user-visible change is the kernel result for refused cases, plus additive note text. No UX default changes, so the check passes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added area:doc timeline, components, parameters, naming area:kernel B-rep kernel, booleans, blends, STEP/IGES area:ui desktop/web front end, dialogs, viewport labels Dec 3, 2026
…ays so

A Delete Face the healer refuses now runs kernel::delete_faces_grown: a blind
hole's wall alone also deletes the floor it closes in, and the plate heals.
New features (the dialog, face.delete, the Delete key) set `grow`; a feature
saved without it reads as off, so an old design's Delete Face in error stays
refused, and an edit keeps the stored value.

The model keeps the faces each Delete Face added (ModelState::grown_faces).
The status line says "Delete Face: also removed 1 face (the face closed in by
the pick)" once after OK or Delete, the dialog shows it under its options
while previewing, and the preview marks the added faces on the body as it
was. selection.delete's reply lists those notes in `warnings`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bherbruck and others added 4 commits December 3, 2026 13:32
…_faces walk (tangency-labs#25773)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dialogs_dense.rs: main moved the Delete Face options onto the shared tool definitions; the grown-faces warning now renders after those fields.
…eal shrinks to nothing

Where the plain pick is refused and the corner solve leaves a planar
neighbour with fewer than three distinct corners in every loop (the rest of a
tetra or ramp on a plate, the other wall of a notch), delete_faces_grown adds
those neighbours and heals again, up to three rounds. The plain pick still
runs first; delete_faces is unchanged. The app names them: "Delete Face: also
removed 2 faces (the faces the heal shrank to nothing)".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The open-gap refusal already finds the faces a pick leaves standing with at
most one other face to meet (the last side of a wall whose top, ends and
other side are picked) and checks the heal with them works, asking the user
to select them too. delete_faces_grown now takes them instead, before the
corner solve's guess (G2). delete_faces keeps the refusal word for word. The
app names them: "Delete Face: also removed 1 face (the face left with nothing
to close against)".

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:doc timeline, components, parameters, naming area:kernel B-rep kernel, booleans, blends, STEP/IGES area:ui desktop/web front end, dialogs, viewport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants