Skip to content

Frames: Trim/Extend face targets, reused member names, moved components and face names #5771

Closed as not planned

Description

@Karl-VonRichter

Found in a review of #5312 (Frames: Trim/Extend, part of #4003). None of them crashes; each gives a wrong or stale result. They depend on #5312 (frame.trim isn't on main yet), so the fix is a PR stacked on it.

Problems

  1. A trim to a body face doesn't follow the face. The command captures the face with its attachment, but evaluation reads the plane as it was when picked (resolve_plane_in on a PlaneRef::Face). Sketches and construction planes on a face use resolve_attached_plane_noted and follow it.
    Reproduce: a 200 × 200 plate T = 10 thick, a 45 × 45 post along Z from z = 100 to 300, frame.trim the post to {"plane": {"face": [50, 50, 10]}}: 290 long. Change T to 30. Expected: the post stands on the new top, 270 long. Actual: it stays 290, sunk into the plate.
  2. A member name taken again can mean the old member. A member's record stays in the model when Remove or Combine takes its body, and a new member can take the freed name. frame.trim and the dialog take the first record with that body name: the old one.
    Reproduce: a member Rail, solid.remove it, a new frame.member named Rail on another line, then trim Rail. Actual: "Rail was changed after it was made" (as a target it would butt against the removed member's line). Expected: the new member is trimmed.
  3. Face targets inside a moved component are placed twice. frame.trim has no entry in the engine's frame-mapping table, so the new feature is moved into the active component's frame, but a face capture is already in that frame.
    Reproduce: a moved component (100 up), a post in it, a plate whose top is shown at z = 50; trim the post to that face. Expected: it stands at z = 50. Actual: it is offset by the component's placement.
  4. The dialog sends a face target as a bare point ({"plane": {"face": [x, y, z]}}), dropping the body, index and path the pick has. Without them the capture searches every body: in a design with detailed bodies that hits "face capture work limit exceeded; use an exact body and face index", which the dialog can't do anything about. Start Sketch sends the exact face.
  5. A trim renames every face of the member it rebuilds. The rebuilt body's faces are named as the trim's own (F<trim>:face:k), not the member feature's (F<member>:face:k). A hole, fillet or sketch on a member loses its face when a trim goes in before it, which is what the trim's own error ("trim it before the features that change it") asks for.
  6. A saved model from before trims is adopted with no member records: it has no frame_members, read as none, and the member features' fingerprints are unchanged, so it is taken as the design's evaluation. A trim added after reopening fails with "member on line l1 of Member1 (it must come earlier in the timeline)". Only designs saved by development builds with Frames: profile library, members along frame sketch lines, and the Frame Member dialog (#4003) #4004 and not Weldments: trim and extend frame members to other members, planes, or faces #5312 have such a model.
  7. Docs and tests: docs/frames.md says only chosen sides and origin/normal planes come back under Keep in Edit Feature; face targets do too. The dialog test's comment says kept targets go "unless unticked", but unticking isn't tested; the hostile-input test doesn't send the plane_ref or {member, side} forms.

Known and left

A member changed by a later feature is told by its face count and bounding box. A square bar turned 90° about its own line by a Move passes, and a trim would rebuild it unturned. It takes a contrived edit.

Activity

  1. added
    area:doc
    needs-triage
    in progress
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    Claimed by @Karl-VonRichter through #5773. The claim lapses after 14 days without pushes.

  3. Karl-VonRichter commented on Oct 24, 2026

    @Karl-VonRichter
    ContributorAuthor

    Closed: these are review fixes to #5312, which isn't merged yet. They are in #5312 itself (Frames: fixes from the Trim/Extend review), not a separate change.

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

Metadata

Metadata

Labels

area:docin progressneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions