Skip to content

Section Analysis: a section on a construction plane stays where the plane was after the plane is edited or deleted #10706

Done

Description

@froglemonade2

Reproduced on: SolidCraft 0.29.0 (release), Linux x86_64, NVIDIA GTX 1060 (Vulkan), in the app
Kernel: no — Section Analysis stores a fixed origin and normal in crates/engine/src/cmd/section.rs; no crates/kernel change

A section made on a construction plane copies where the plane is at that moment. Moving the plane or deleting it does not move or clear the section. This may be intended (the command's comment says "where it is now"), but then the pill should not suggest a link to the plane, and a deleted plane should probably end its section. Please decide which one is meant.

Steps

  1. Box 40 × 30 × 20 mm. Offset plane "CutPlane" from XZ by 10 mm.
  2. Section Analysis on CutPlane. Pill: "Section Y 10.00 mm".
  3. Edit CutPlane's offset to 20 mm.
  4. Delete CutPlane.
{"commands":[
 {"command":"solid.box","params":{"length":40,"width":30,"height":20,"body_name":"Block"}},
 {"command":"construct.plane.offset","params":{"base":"XZ","offset":10,"name":"CutPlane"}},
 {"command":"inspect.section","params":{"plane":"CutPlane"}},
 {"command":"timeline.edit","params":{"feature":"CutPlane","set":{"plane.distance":"20"}}},
 {"command":"timeline.delete","params":{"feature":"CutPlane"}}
]}

Expected

Either the section follows the plane (cut at y = 20 after step 3, cleared or flagged after step 4), or it is clearly a one-off copy.

Actual

view.status_items after each step:

after step 2: origin_mm [0, 10, 0], normal [0, 1, 0]
after step 3: origin_mm [0, 10, 0], normal [0, 1, 0]   (plane is now at y = 20)
after step 4: origin_mm [0, 10, 0], normal [0, 1, 0]   (plane deleted; pill still "Section Y 10.00 mm")

Where it happens

From reading the source (main e77c555): crates/engine/src/cmd/section.rs:40 ("A construction plane (name or id): where it is now") resolves the plane once and keeps only its origin and normal in Session::section (crates/engine/src/lib.rs:535). Nothing remembers which plane it came from.

Related

Screenshots

  • After the plane is deleted: the box is still cut at y = 10, pill "Section Y 10.00 mm".

    f5_2_deleted

Activity

  1. added
    needs-triage
    on Nov 1, 2026
  2. Joberndo commented on Nov 2, 2026

    @Joberndo
    Contributor

    PR #8733 (for #3977) makes a section on a construction plane follow that plane and keeps it with a warning when the plane is deleted, which covers this issue.

  3. dudedagger42 commented on Nov 3, 2026

    @dudedagger42
    Collaborator

    Triage by dudedagger42: Reproduced on solidcraft-cli 0.30.1 (official, Windows x64) with the commands in your report: the section on CutPlane reads origin [0, 10, 0], normal [0, 1, 0] after it is made, still the same after CutPlane's offset is edited to 20 mm, and still the same after CutPlane is deleted.

    Boundary: CLI only; the section pill in the app was not run.

    Root cause (likely): crates/engine/src/cmd/section.rs copies the plane's origin and normal when the section is made, as your read of line 40 says; I did not trace the delete path. PR #8733 (for #3977), open and not merged, makes a section follow its plane.

  4. nullifyr commented on Dec 3, 2026

    @nullifyr
    Contributor

    I ran the exact report on main e3855ea466 with the 0.54.0 Linux CLI and inserted a view.status_items query after each operation.

    Operation Section origin in mm
    Create the section on CutPlane [0, 10, 0]
    Set CutPlane offset to 20 mm [0, 10, 0]
    Delete CutPlane [0, 10, 0]

    The desktop picker confirms the section starts from CutPlane. Draft #25762 adds a message in that picker flow explaining that edits to the construction plane leave the cut in place.

  5. added 2 commits that reference this issue on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions