Title: Automatic idempotent regeneration of the filling/opening/voided element · Issue #8431 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Automatic idempotent regeneration of the filling/opening/voided element · Issue #8431 · IfcOpenShell/IfcOpenShell
X Title: Automatic idempotent regeneration of the filling/opening/voided element · Issue #8431 · IfcOpenShell/IfcOpenShell
Description: Looking at the basic opening creation guide in #8411 , the regeneration Vs apply void confusion doesn't cleanly separate inherent semantic modeling from implementation quirks and convenience shortcuts. To hide regen functionality, a depe...
Open Graph Description: Looking at the basic opening creation guide in #8411 , the regeneration Vs apply void confusion doesn't cleanly separate inherent semantic modeling from implementation quirks and convenience shortc...
X Description: Looking at the basic opening creation guide in #8411 , the regeneration Vs apply void confusion doesn't cleanly separate inherent semantic modeling from implementation quirks and convenience sh...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8431
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Automatic idempotent regeneration of the filling/opening/voided element","articleBody":"Looking at the basic opening creation guide in #8411 , the regeneration Vs apply void confusion doesn't cleanly separate inherent semantic modeling from implementation quirks and convenience shortcuts.\n\nTo hide regen functionality, a dependent object (opening/wall) needs to track its driver (door/filling) whenever the driver changes. Also, multiple kinds of changes require different regeneration work.\n\nMore details:\n\n\u003cDetails>\n\nLet's look how other bim tools solve it.\n\n**1. Hosted relationships are live, not button-triggered**\n\nIn Revit, a door is a \"hosted\" family instance. Move it, and the wall cut moves with it in the same drag — there's no separate \"regen\" step, because the host/hosted relationship is maintained by the parametric engine on every recompute, not by the user remembering to press a key. The equivalent here would be: dragging a door in the viewport updates the opening's placement live (or at latest, on mouse-release), the same way Blender's own modifier stack updates a mesh as you move its target empty. The two-step \"move, then remember to press Shift+G\" is a workaround for Blender's object model, not something the user should have to think about.\n\n**2. One operation, not two operators the user has to choose between**\n\nProfessional tools don't ask \"did you change placement or shape? Pick the right command.\" The system diffs old vs. new state and decides what work is needed. Concretely: a single \"Update\" action on a door/window could compare the cached matrix and profile hash against current values, and internally call the cheap placement-only path when only position changed, and the full regenerate-void path when shape changed. The user never needs to know Regen and Apply Void are different code paths — that's an implementation detail currently leaking into the UI as two hotkeys.\n\n**3. Dirty-state is visible, not something you find out by pressing the wrong button**\n\nSolidWorks and Fusion 360 show a rebuild indicator (a small icon in the feature tree, or a lightning bolt) on any node whose dependents are stale. Applied here: if a door has moved since its opening was last synced, the door (or the wall, or the outliner row) should show a small \"out of sync\" badge. That converts \"I moved the door, pressed Regen, but the hole didn't move — why?\" from a documentation problem into something the interface tells you before you even ask.\n\n**4. Invariants are enforced by the system, not by user discipline**\n\n\"Don't press Apply Void twice\" is exactly the kind of rule a robust CAD kernel wouldn't leave to the user. The fix is that Apply Void should be idempotent: detect an existing opening for that filling/wall pair and update it in place rather than create a new `IfcOpeningElement`, every time, unconditionally. The current code already has a partial `existing_opening_occurrence` reuse path — a professional-grade version makes that the only path, with no user-facing failure mode for repeated presses.\n\n**5. Deletion is a guided decision, not a silent orphan**\n\nRevit prompts you when deleting a hosted element's host, or cascades deletion of the hosted element automatically. Here, deleting a door should trigger something like: *\"This door has an opening cut into [Wall Name]. Also remove the opening? [Remove opening] [Keep as blank opening] [Cancel]\"* — rather than leaving a dangling `IfcOpeningElement` that the user discovers later via a corrupted export or a confusing \"Show Voids\" toggle they didn't know existed.\n\n**6. Implementation vocabulary stays out of the primary workflow**\n\n\"Regen,\" \"Apply Void,\" \"Filling,\" \"Voids Elements\" are all schema/operator names, not user intent. A professional tool would surface intent-level actions — *Move*, *Flip Swing*, *Resize*, *Delete* — and handle the IFC relationship bookkeeping invisibly. The Filling/Opening/Voided-Element vocabulary belongs in an \"IFC Properties\" or \"Relationships\" inspector panel for power users, not in the primary modeling workflow, where the terms confuse.\n\n-----\n\nWhat the current door.rst is documenting is largely a set of manual workarounds for an issue of not maintaining the dependency graph automatically. Good documentation can make those workarounds obvious, but the actual UX fix is closer to \"make regeneration automatic and idempotent\" than \"explain the two buttons better.\"\n\u003c/Details>","author":{"url":"https://github.com/Vanuan","@type":"Person","name":"Vanuan"},"datePublished":"2026-07-09T15:05:50Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8431"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8190a519-a89c-d418-6b54-a2aa0e347b54 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8276:3670FE:EAB5A:144986:6B04B106 |
| html-safe-nonce | c1a40f9793c461cff09e9e7ff2d9925e0dc24e10b7792d1a6e0d45fe892f123b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mjc2OjM2NzBGRTpFQUI1QToxNDQ5ODY6NkIwNEIxMDYiLCJ2aXNpdG9yX2lkIjoiNTI5MjU3MTE2Mjc5NzQ1MzU3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 86c7e15b9fdfd0ae6dfd2e0d211fd9236aa943cb479b732369232c63fadf3dc9 |
| hovercard-subject-tag | issue:4847424955 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/8431/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c95c28e698187e92408cb430301dcf7e595098f24d736fd7f4403d18eca2214c/IfcOpenShell/IfcOpenShell/issues/8431 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c95c28e698187e92408cb430301dcf7e595098f24d736fd7f4403d18eca2214c/IfcOpenShell/IfcOpenShell/issues/8431 |
| og:image:alt | Looking at the basic opening creation guide in #8411 , the regeneration Vs apply void confusion doesn't cleanly separate inherent semantic modeling from implementation quirks and convenience shortc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Vanuan |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width