Title: Bonsai: update existing space boundaries in place instead of skipping them on regeneration by petruconduraru · Pull Request #8686 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: update existing space boundaries in place instead of skipping them on regeneration by petruconduraru · Pull Request #8686 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: update existing space boundaries in place instead of skipping them on regeneration by petruconduraru · Pull Request #8686 · IfcOpenShell/IfcOpenShell
Description: Fixes #3446. AddBoundary.auto_generate_boundaries indexed a space's existing IfcRelSpaceBoundary entities only to exclude their related elements from regeneration entirely. Re-running Generate Boundaries after moving or resizing a wall, slab or opening left the old boundary geometry untouched and stale, since neither the element nor its boundary were ever reprocessed. Not quite the delete-and-recreate the issue described, worse: once a boundary existed, it was never touched again at all. This keeps every already-bounded element in the regeneration pass and matches each newly computed boundary back to its previous entity by related element and IFC class. Matched boundaries get their ConnectionGeometry (and loaded Blender mesh, if any) replaced in place, while attributes a user may have corrected by hand, such as InternalOrExternalBoundary, are left untouched, addressing exactly the concern in the issue ("you may have improved the auto-generation... what should be updated... is mainly boundary geometry"). Boundaries left unmatched after a pass, because their element moved away or no longer bounds the space, are removed. Elements without a prior boundary still get a freshly created one as before. Live-tested: generate boundaries for a room, manually set one boundary's InternalOrExternalBoundary (simulating a user correction), move the corresponding wall, delete a different wall, add a replacement wall in its place, regenerate. Confirmed the reused boundary's entity id is unchanged (true in-place update), the manual attribute survived, geometry actually updated to follow the moved wall, the deleted wall's boundary was removed, and the new wall got a freshly created boundary. Ran the same test against the unmodified baseline: everything passes except geometry-follows-moved-wall, confirming this isolates the actual reported bug rather than being a tautological test. Update on v0.9.0: removing unmatched boundaries now only applies to elements the regeneration pass reprocesses. Before, it also deleted boundaries of elements the pass never looks at, such as one added by hand for an IfcMember. Two scenarios are added in boundary.feature: regenerating after moving a wall, which fails on unmodified v0.9.0, and one that guards the hand made boundary. AI-generated PR, human-reviewed. Ordering note: #8703 adds a branch to the same chain in boundary/operator.py and a scenario to the same feature file. Whichever of the two lands second needs a re-merge; they fix different issues.
Open Graph Description: Fixes #3446. AddBoundary.auto_generate_boundaries indexed a space's existing IfcRelSpaceBoundary entities only to exclude their related elements from regeneration entirely. Re-running Generate ...
X Description: Fixes #3446. AddBoundary.auto_generate_boundaries indexed a space's existing IfcRelSpaceBoundary entities only to exclude their related elements from regeneration entirely. Re-running Gener...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8686
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f4a5ba91-6887-12ec-b587-4b20bcae42cc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E4D4:D0168:23E236:316355:6B04B764 |
| html-safe-nonce | 534e378160e7b36ba1326b6da5db22aedbac0bb45d0ad7c1ac6f53d995ea4294 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEQ0OkQwMTY4OjIzRTIzNjozMTYzNTU6NkIwNEI3NjQiLCJ2aXNpdG9yX2lkIjoiNzIwMzQxOTA2OTMxODczOTgxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea075358191fa3334d3c596ad6e419e3d1de8081ee3d578247311be11af7dffc |
| hovercard-subject-tag | pull_request:4074242812 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/IfcOpenShell/IfcOpenShell/pull/8686/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Fixes #3446. AddBoundary.auto_generate_boundaries indexed a space's existing IfcRelSpaceBoundary entities only to exclude their related elements from regeneration entirely. Re-running Generate ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width