René's URL Explorer Experiment


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

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:a6cd2ea0-8fb0-1616-6f0a-cb459be3f59a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id89B8:1E56CD:92433:C568D:6B04AF51
html-safe-noncec78861085d4b556d5b1477f426d1bbabd8526ed8d38ec8f7c43e407af786e7bb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUI4OjFFNTZDRDo5MjQzMzpDNTY4RDo2QjA0QUY1MSIsInZpc2l0b3JfaWQiOiIzNDY2NzU4NjEzNjkwMDAzMjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3e5943157d58482345cbf05c6e762a35805ce354063f7daa557ab44a51db23b3
hovercard-subject-tagpull_request:4045744274
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
twitter:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
og:image:altSummary 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8596%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8596%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests940 (940)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
petruconduraruhttps://github.com/petruconduraru
IfcOpenShell:v0.9.0https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.9.0
BIMvoice:fix-3747-curtain-wall-space-boundinghttps://github.com/BIMvoice/IfcOpenShell/tree/fix-3747-curtain-wall-space-bounding
Conversation 1 https://github.com/IfcOpenShell/IfcOpenShell/pull/8596
Commits 4 https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
Bonsai: let curtain wall members/plates close space boundaries https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#top
Show all changes 4 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
d3e8d3b Bonsai: let curtain wall members/plates close space boundaries petruconduraru Jul 13, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/commits/d3e8d3b8d49d50e46f599cdb458313b1c1a866a1
02129f1 Merge origin/v0.9.0 into mig/8596 petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/commits/02129f1f197ef67e3f721a0a6e50a183747866f7
67494d4 Test curtain wall parts as boundary elements petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/commits/67494d43a29a6e963db2fbd4e3406a4e1b20d28a
61edfe7 Bonsai: let standalone curtain walls bound spaces petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/commits/61edfe799784fc68bd42f4aa261ae248509b909b
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
operator.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-8bf447c24a377f30246d4d1cc2c1eb76033b916f295d2dbe77fcb8068a9ee836
spatial.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-aa87883ea0653ab5d6c41e2cc2725336df41bed006d1ab81a848d7dd2b7038a3
__init__.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-d457c726200504cbe17a738d1a2aea74a9ee82b9732b614e99e3cc189f5fe88a
test_auto_generate_boundaries.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-f5b45810f4e7d95753917ec67e9c725fd131fda72c9d6bb779fe35fde6eabbd8
test_spatial.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-b56da29b284e41e80dd75d9ef0173acd6fcb71d06c4a7b4c806c2044e88023cf
src/bonsai/bonsai/bim/module/boundary/operator.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-8bf447c24a377f30246d4d1cc2c1eb76033b916f295d2dbe77fcb8068a9ee836
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/61edfe799784fc68bd42f4aa261ae248509b909b/src/bonsai/bonsai/bim/module/boundary/operator.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-8bf447c24a377f30246d4d1cc2c1eb76033b916f295d2dbe77fcb8068a9ee836
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-8bf447c24a377f30246d4d1cc2c1eb76033b916f295d2dbe77fcb8068a9ee836
src/bonsai/bonsai/tool/spatial.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-aa87883ea0653ab5d6c41e2cc2725336df41bed006d1ab81a848d7dd2b7038a3
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/61edfe799784fc68bd42f4aa261ae248509b909b/src/bonsai/bonsai/tool/spatial.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-aa87883ea0653ab5d6c41e2cc2725336df41bed006d1ab81a848d7dd2b7038a3
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-aa87883ea0653ab5d6c41e2cc2725336df41bed006d1ab81a848d7dd2b7038a3
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-aa87883ea0653ab5d6c41e2cc2725336df41bed006d1ab81a848d7dd2b7038a3
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-aa87883ea0653ab5d6c41e2cc2725336df41bed006d1ab81a848d7dd2b7038a3
src/bonsai/test/bim/module/boundary/__init__.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-d457c726200504cbe17a738d1a2aea74a9ee82b9732b614e99e3cc189f5fe88a
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/61edfe799784fc68bd42f4aa261ae248509b909b/src/bonsai/test/bim/module/boundary/__init__.py
Open in desktop https://desktop.github.com
src/bonsai/test/bim/module/boundary/test_auto_generate_boundaries.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-f5b45810f4e7d95753917ec67e9c725fd131fda72c9d6bb779fe35fde6eabbd8
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/61edfe799784fc68bd42f4aa261ae248509b909b/src/bonsai/test/bim/module/boundary/test_auto_generate_boundaries.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/{{ revealButtonHref }}
src/bonsai/test/tool/test_spatial.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-b56da29b284e41e80dd75d9ef0173acd6fcb71d06c4a7b4c806c2044e88023cf
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/61edfe799784fc68bd42f4aa261ae248509b909b/src/bonsai/test/tool/test_spatial.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-b56da29b284e41e80dd75d9ef0173acd6fcb71d06c4a7b4c806c2044e88023cf
https://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files#diff-b56da29b284e41e80dd75d9ef0173acd6fcb71d06c4a7b4c806c2044e88023cf
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8596/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.