Title: Bonsai: let curtain wall members/plates close space boundaries by petruconduraru · Pull Request #8596 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: let curtain wall members/plates close space boundaries by petruconduraru · Pull Request #8596 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: let curtain wall members/plates close space boundaries by petruconduraru · Pull Request #8596 · IfcOpenShell/IfcOpenShell
Description: Summary Generate Spaces From Walls (bim.generate_spaces_from_walls) only recognized IfcWall/IfcColumn as boundary elements via tool.Spatial.get_boundary_elements. Its sibling operator, Generate Space (bim.generate_space), already treats IfcMember, IfcVirtualElement and IfcPlate as bounding classes too, via tool.Spatial.is_bounding_class: @classmethod def is_bounding_class(cls, visible_element: ifcopenshell.entity_instance) -> bool: for ifc_class in ["IfcWall", "IfcColumn", "IfcMember", "IfcVirtualElement", "IfcPlate"]: if visible_element.is_a(ifc_class): return True return False Because get_boundary_elements had its own, narrower, hardcoded list, any room with a curtain-wall side (an IfcCurtainWall aggregating IfcMember mullions + IfcPlate panes via IfcRelAggregates) silently failed to close and no IfcSpace was generated for it when using "Generate Spaces From Walls". This fixes #3747, where the reporter's real Revit-exported IFC (heavy curtain wall usage) produced no spaces on a level. Fix get_boundary_elements now delegates to is_bounding_class so both operators agree on which classes can close a room boundary, plus a defensive null-check for selected objects with no linked IFC element. Test plan Verified live in headless Blender 5.1 (before/after, same synthetic model): Built a synthetic IFC4 model: a 4m x 3m room bounded by 3 real IfcWalls and a 4th side made of an IfcCurtainWall aggregating 4 IfcMember mullions + 3 IfcPlate panes. Imported via bim.load_project, selected the 3 walls + all members/plates, active object a wall, ran bpy.ops.bim.generate_spaces_from_walls(). Before fix: 0 IfcSpace created (members/plates silently dropped, no closed interior). After fix: 1 IfcSpace created with the correct footprint (3.80m x 2.89m, matching the interior faces including the recessed curtain wall pane). Also confirmed the existing bim.generate_space (cursor-based) operator already worked correctly against the same synthetic model and against maxtillberg's real repro file linked in the issue, confirming IfcPlate/IfcMember support in that operator was already correct (Moult's original claim in the thread holds) - the previously-unfixed gap was specifically in generate_spaces_from_walls. Also downloaded and inspected the reporter's linked sample file (RAC_basic_sample_project no spaces.ifc, a real Revit export with 9 curtain walls / 44 plates on Level 1) to confirm curtain wall members/plates do appear as valid boundary candidates in the existing cursor-based operator's algorithm. Verified bug reproduced before fix (0 spaces) Verified bug fixed after fix (1 correctly-bounded space) black/ruff clean AI-generated: this change (diagnosis, fix, and live verification in headless Blender) was produced by an AI coding agent, per this repo's AGENTS.md disclosure policy. Correction: the change is larger than described. As well as making get_boundary_elements use is_bounding_class and skip objects with no IFC entity, it adds IfcCurtainWall to the class list inside is_bounding_class itself (tool/spatial.py), which also changes which elements Generate Space (bim.generate_space) treats as bounding, and it adds IfcCurtainWall to the element list in AddBoundary.auto_generate_boundaries (boundary/operator.py). The description says only members and plates were missing and that Generate Space already worked, which is no longer the whole picture.
Open Graph Description: Summary Generate Spaces From Walls (bim.generate_spaces_from_walls) only recognized IfcWall/IfcColumn as boundary elements via tool.Spatial.get_boundary_elements. Its sibling operator, Generate Spa...
X Description: Summary Generate Spaces From Walls (bim.generate_spaces_from_walls) only recognized IfcWall/IfcColumn as boundary elements via tool.Spatial.get_boundary_elements. Its sibling operator, Generate Spa...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8596
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
| 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:a6cd2ea0-8fb0-1616-6f0a-cb459be3f59a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 89B8:1E56CD:92433:C568D:6B04AF51 |
| html-safe-nonce | c78861085d4b556d5b1477f426d1bbabd8526ed8d38ec8f7c43e407af786e7bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUI4OjFFNTZDRDo5MjQzMzpDNTY4RDo2QjA0QUY1MSIsInZpc2l0b3JfaWQiOiIzNDY2NzU4NjEzNjkwMDAzMjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3e5943157d58482345cbf05c6e762a35805ce354063f7daa557ab44a51db23b3 |
| hovercard-subject-tag | pull_request:4045744274 |
| 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/8596/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 | Summary Generate Spaces From Walls (bim.generate_spaces_from_walls) only recognized IfcWall/IfcColumn as boundary elements via tool.Spatial.get_boundary_elements. Its sibling operator, Generate Spa... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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