Skip to content

Fix clone point-and-click edge references - #12440

Closed
pierremtb wants to merge 18 commits into
mainfrom
pierremtb/issue12421-point-and-click-cant-fillet-on-a-cloned-body
Closed

Fix clone point-and-click edge references#12440
pierremtb wants to merge 18 commits into
mainfrom
pierremtb/issue12421-point-and-click-cant-fillet-on-a-cloned-body

Conversation

@pierremtb

@pierremtb pierremtb commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Closes #12420 and #12421, through a big Codex pass at centralizing how edge selections resolve their owning body.

image

Suggested review order:

  1. tagManagement.ts: core change. Review resolveEdgeSelectionContext and clone face mapping:

    • Caps map by subtype.
    • Walls map through their original sketch segment.
    • Generated references remain qualified to the selected body.
  2. edges.ts: Fillet, Chamfer, and Blend now use that shared context:

    • Operations target the selected clone rather than its source.
    • Original and cloned bodies are grouped separately.
    • Boolean-result and piped-body behavior should remain intact.
  3. sweeps.ts: edge-profile Extrude and edge directions use the same resolution path.

  4. Tests: the focused integration tests show the complete expected KCL for cloned Fillet, original-body Fillet, Blend, Profile GDT, and edge-profile Extrude. Playwright changes update existing expectations for qualified cap references.

Important notes:

  • Selecting a clone edge produces references such as cube2.sketch.tags.line2 and cube2.faces.capEnd001.
  • Selecting the original produces cube1.faces.capEnd001, even when a clone follows it.
  • Original and clone selections do not collapse into one Fillet/Chamfer operation.
  • Non-cloned, piped, and boolean-result bodies still resolve correctly.

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
modeling-app Ready Ready Preview, Comment Jul 15, 2026 10:37pm

Request Review

@pierremtb pierremtb left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review notes

Comment thread src/lang/modifyAst/edges.spec.ts Outdated
Comment thread src/lang/modifyAst/edges.spec.ts Outdated
Comment thread src/lang/modifyAst/edges.spec.ts Outdated
Comment thread src/lang/modifyAst/gdt.spec.ts Outdated
Comment thread src/lang/modifyAst/sweeps.spec.ts Outdated
@pierremtb
pierremtb marked this pull request as ready for review July 15, 2026 22:51
@pierremtb
pierremtb requested a review from a team as a code owner July 15, 2026 22:51
@pierremtb pierremtb linked an issue Jul 15, 2026 that may be closed by this pull request
@pierremtb

Copy link
Copy Markdown
Contributor Author

Marking as draft for now, #12473 might take over

@pierremtb
pierremtb marked this pull request as draft July 21, 2026 14:04
@pierremtb pierremtb closed this Jul 31, 2026
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.

Point and click can't fillet on a cloned body Fillet breaks if you add a clone before it

1 participant