Repository navigation
Description
What happens
Hiding a body doesn't keep a Hole out of it. The Hole dialog draws the hidden bodies while its preview runs, and OK drills them as well. Afterwards they are hidden again, so you don't see that they changed.
I hid two bodies to work on a third, a long flat support. The support sits in pockets of the hidden bodies. Then I placed a Single hole on the support's underside:
- Once the preview has finished (6–9 s here), the two hidden bodies are drawn in the view and the hole tool runs up into them. The browser still shows them as hidden.
ui.inspectreportspreview.replaced: ["MainCorner", "DoorCorner", "Body2"]. - OK saves the hole with no
targets, so it drills every body in its path.MainCornerloses 45.7 mm³,DoorCorner46.5 mm³, andBody2, the only shown body, 196.2 mm³ (the whole Ø5 × 10 hole). - The saved hole's
face_namesis["F2:start"]: the bottom face of the hidden bodies, which is coplanar with the support's underside there. The face I picked wasBody2face 0, which is namedF42:start.
Steps
As a script:
{"commands": [
{"command": "solid.box", "params": {"length": 40, "width": 40, "height": 5, "body_name": "Plate"}},
{"command": "solid.box", "params": {"corner": [0, 0, 5], "length": 40, "width": 40, "height": 20, "operation": "new", "body_name": "Block"}},
{"command": "browser.visibility", "params": {"items": ["Block"], "visible": false}},
{"command": "solid.hole", "params": {"position": [20, 20, 0], "diameter": 5, "depth": 10, "name": "Hole1"}}
]}Hole1 reports changed_bodies: ["Plate", "Block"], although Block is hidden.
In the app: hide one of two bodies that touch, start Hole, and pick a face of the shown body where the drill will reach the hidden one. The hidden body appears while the preview is up, and OK drills it.
Expected
The same rule #2464 and #6901 set for Extrude and the other feature windows:
- With no targets picked, Hole drills only the shown bodies. The shown set is saved as the feature's
targets, so showing or hiding a body later doesn't change the model. - The preview doesn't draw hidden bodies.
- The face reference names the body that was picked.
#6901 lists Hole as "unchanged" and #2465 adds Targets to Extrude only, so neither covers this. The fix is in the Hole command's default targets and in the dialog's preview, not in crates/kernel/.
Screenshots (main 783ee91, 0.24.0)
While the dialog is open: the hidden bodies are drawn and the preview runs into them.
After OK the view looks right: the bodies are hidden again and only Body2 shows a hole.
A section through the hole axis with only the two hidden bodies shown, before and after: they now have a new Ø5 bore, and its drill tip breaks into the Ø4 hole above.
Environment
main 783ee91 (0.24.0) and the 0.23.1 release; Linux x86_64, NVIDIA GTX 1080 Ti on Vulkan.



Activity
dahakbuilds commentedon Oct 27, 2026
Triage by Dahak (agent): reproduced on 0.24.0 (Linux x86_64, official build) with the script from the report —
solid.boxPlate 40×40×5,solid.boxBlock 40×40×20 at z=5,browser.visibilityhides Block, thensolid.holeØ5×10 at (20,20,0): Hole1 reportschanged_bodies: ["Plate", "Block"]although Block is hidden. Also reproduced on main at 514b0c8.Confirmed in source:
hole()incrates/engine/src/cmd/features.rsonly maps an explicittargetsparam to participants (features.rs:2515); with notargetsit never applies the shown-body scope, unlike the Extrude Cut path, which defaults toshown_scope()(features.rs:832) per #2464. So the fix is the Hole command's default targets (and the dialog preview), notcrates/kernel/.Not a duplicate: #2464/#2465 cover Extrude only, and #6901 lists Hole as unchanged. The dialog-preview half of the report (hidden bodies drawn while the preview runs) is GUI-only and was not verified headlessly; the drilling half is fully reproducible via CLI.
github-actions commentedon Oct 27, 2026
Claimed by @sascha2101 through #7562. The claim lapses after 14 days without pushes.
Hole: drill only the shown bodies when no target is picked (tangency-…
froglemonade2 commentedon Nov 1, 2026
Reproduced on: SolidCraft 0.29.0 (release), Linux x86_64, NVIDIA GTX 1060 (Vulkan), in the app and with headless solidcraft-cli
Kernel: no — Hole's default bodies in crates/engine/src/cmd/features.rs and the dialog preview in crates/ui-egui/src/preview.rs; no crates/kernel change
Still happens on 0.29.0. One more case: the hidden body is cut even when the hole drills away from it. The hole's tool starts a little above the picked face (
top = max(1 % of the part size, 0.1 mm),crates/doc/src/eval.rs:4904), so a hidden body resting on that face loses a thin disc.Steps (app)
{"commands":[ {"command":"solid.box","params":{"length":40,"width":40,"height":5,"body_name":"Lower"}}, {"command":"solid.box","params":{"corner":[0,0,5],"length":40,"width":40,"height":20,"operation":"new","body_name":"Upper"}}, {"command":"browser.visibility","params":{"items":["Upper"],"visible":false}}, {"command":"solid.hole","params":{"position":[20,20,5],"direction":[0,0,-1],"diameter":5,"depth":10}}, {"command":"inspect.measure","params":{}} ]}Expected
Upper is not drawn during the preview and stays 32000 mm³.
Actual
ui.inspect→"preview": {"replaced": ["Lower", "Upper"]},"hidden_bodies": ["Upper"].changed_bodies: ["Lower", "Upper"].changed_bodies: ["Lower", "Upper"], Upper 500 → 495.54 mm³, a pocket Ø6.28 × 0.15 mm (faceF3:csink:baseat z = 5.15).Every time.
Where it happens
From reading the source (main e77c555):
hole()(crates/engine/src/cmd/features.rs:2454) has no shown-bodies default, as the triage above says. PR Hole: drill only the shown bodies when no target is picked (#7520) #7562 adds one, which also covers this case, since Upper would not be a participant.crates/ui-egui/src/preview.rs:661. PR Hole: drill only the shown bodies when no target is picked (#7520) #7562 fixes the Hole preview indirectly, because the hole no longer changes the hidden body. A visibility check in that loop would also cover any other command that changes a hidden body.Screenshots
Top: Upper hidden, only Lower drawn; bottom: the Hole dialog's preview, with Upper (eye still off in the Browser) drawn above Lower.
Hole: drill the picked body though it is hidden (tangency-labs#7520)
Hole: test that a hole made with a body hidden replays the same (tang…
Hole: follow the face-name lookup now returning a Result (tangency-la…
Hole: tests follow main's Vec3 and world_state (tangency-labs#7520)
Hole: format (tangency-labs#7520)
Hole: with every body hidden, drill them all as before (tangency-labs…
Hole: drill only the shown bodies when no target is picked (tangency-…