René's URL Explorer Experiment


Title: Bug: GrossSideArea == NetSideArea in Bonsai QTO (openings not accounted for) · Issue #9235 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bug: GrossSideArea == NetSideArea in Bonsai QTO (openings not accounted for) · Issue #9235 · IfcOpenShell/IfcOpenShell

X Title: Bug: GrossSideArea == NetSideArea in Bonsai QTO (openings not accounted for) · Issue #9235 · IfcOpenShell/IfcOpenShell

Description: Bug Description Testmodel: Testmodel.ifc.txt Symptom After Perform Quantity Takeoff in Bonsai: Source GrossSideArea NetSideArea Bonsai 9.80815 m² 9.80815 m² Solibri 20.08 m² 9.81 m² Bonsai Net ≈ Solibri Net. Bonsai Gross is wrong (equal ...

Open Graph Description: Bug Description Testmodel: Testmodel.ifc.txt Symptom After Perform Quantity Takeoff in Bonsai: Source GrossSideArea NetSideArea Bonsai 9.80815 m² 9.80815 m² Solibri 20.08 m² 9.81 m² Bonsai Net ≈ So...

X Description: Bug Description Testmodel: Testmodel.ifc.txt Symptom After Perform Quantity Takeoff in Bonsai: Source GrossSideArea NetSideArea Bonsai 9.80815 m² 9.80815 m² Solibri 20.08 m² 9.81 m² Bonsai Net ≈ So...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9235

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: GrossSideArea == NetSideArea in Bonsai QTO (openings not accounted for)","articleBody":"### Bug Description\n\nTestmodel: \n\n[Testmodel.ifc.txt](https://github.com/user-attachments/files/30659490/Testmodel.ifc.txt)\n\n## Symptom\n\nAfter *Perform Quantity Takeoff* in Bonsai:\n\n| Source | GrossSideArea | NetSideArea |\n|---|---|---|\n| Bonsai | 9.80815 m² | 9.80815 m² |\n| Solibri | 20.08 m² | 9.81 m² |\n\nBonsai Net ≈ Solibri Net. Bonsai Gross is wrong (equal to Net).\nApplies to (almost) all walls in this model, not just this one.\n\n---\n\n## Repro\n\n1. Open `tests/Testmodel.ifc` in Blender + Bonsai.\n2. Select wall `0P6UZIU3HDXOpp9cgjZsYR`\n   (`Basic Wall:22_OW_HSB_260mm`, storey B-05).\n3. *Perform Quantity Takeoff* (rule `IFC4QtoBaseQuantitiesBlender`).\n4. Read `Qto_WallBaseQuantities.GrossSideArea` / `NetSideArea`.\n\nStandalone evidence (no Blender required):\n\n```text\nBody: Tessellation (IfcPolygonalFaceSet)\nHasOpenings: []          ← no IfcRelVoidsElement\nbbox L×H = 7.21 × 2.785 = 20.07985  ← Solibri Gross\nutil.shape.get_side_area = 9.808147 ← Solibri/Bonsai Net\ndisable-opening-subtractions True/False: identical (no opening relationships)\n```\n\nModel-wide (`tests/Testmodel.ifc`):\n\n| Measurement | Value |\n|---|---|\n| IfcWall | 120 |\n| walls with `HasOpenings` | **4** |\n| walls without opening relationship | **116** |\n| IfcOpeningElement total | 96 (24 on walls, 72 on slabs) |\n| walls where bbox L×H − mesh side > 0.05 m² | **84** |\n\nConclusion: openings are mostly **baked into the tessellation**,\nnot present as `IfcOpeningElement` on the wall.\n\n---\n\n## Root cause\n\nBonsai v0.8.x, `bonsai.bim.module.qto.calculator`:\n\n```python\ndef get_gross_side_area(obj):\n    if not has_openings(obj):          # ← only IfcRelVoidsElement\n        return get_net_side_area(obj)  # ← Gross becomes Net\n    return get_lateral_area(..., subtract_openings=False, ...) / 2\n\ndef has_openings(obj):\n    return [o for o in ifcopenshell.util.element.get_openings(element)]\n```\n\nRule mapping (`ifc5d/IFC4QtoBaseQuantitiesBlender.json`):\n\n```text\nGrossSideArea → get_gross_side_area\nNetSideArea   → get_net_side_area\n```\n\n`get_net_side_area` = lateral mesh area / 2 → correct Net (≈ Solibri).\n\n`get_gross_side_area` short-circuits when there are no opening *relationships* →\nGross = Net, even when the mesh still has holes.\n\nThe same gate exists on `get_gross_volume` / `get_gross_surface_area`:\nthe gross path uses `disable-opening-subtractions`, but that only helps\nwhen there are opening relationships to skip. With pure tessellation,\ngross mesh == net mesh.\n\nIFC4 definition (for reference):\n\n- **GrossSideArea** — elevation view of the wall middle plane, **including** openings\n  (≈ Length × Height of the full wall).\n- **NetSideArea** — the same plane, **excluding** openings.\n\nSolibri follows that definition (Gross = L×H). Bonsai only follows it when\n`HasOpenings` is populated.\n\n---\n\n## What this is not\n\n- Not a UI bug / rounding issue.\n- Not a wrong QTO rule mapping in the installed Blender JSON\n  (it correctly maps to `get_*_side_area`; the skill-doc example mapping to\n  `get_gross_surface_area` is outdated/incorrect vs the real JSON).\n- Not a Solibri error on this wall: L×H = 20.07985 matches Solibri 20.08.\n\n---\n\n## Solution directions\n\n### A — Fix in Bonsai `get_gross_side_area` (recommended for the QTO symptom)\n\nWhen `not has_openings(obj)`: Gross ≠ blindly Net, but bbox elevation:\n\n```python\n# already in calculator.py:\n# get_side_area(o) := max(get_x(o)*get_z(o), get_y(o)*get_z(o))\nreturn get_side_area(obj)\n```\n\nThen for this wall: Gross ≈ 20.08, Net ≈ 9.81 → Solibri parity.\nWithout openings (full rectangular wall) Gross ≈ Net remains.\n\n**Ceiling:** bbox L×H overestimates for L-shaped / non-rectangular\nplan outlines. Upgrade: outer-contour projection instead of bbox, or\nparametric Length×Height from type/occurrence.\n\nSame consideration for GrossVolume if volume must also be correct without\nopening relationships — separate, harder fix (reconstructing a mesh without\nholes is not possible from pure tessellation alone).\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/PahlawanJoey","@type":"Person","name":"PahlawanJoey"},"datePublished":"2026-08-03T11:41:36Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9235"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:df8eea20-0d17-11a3-58e8-c9b21789d807
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDC40:99B56:72AE9B:A12F2C:6B047C47
html-safe-nonce94e38819fd1f819af654aedd5ae6e961d56005eff882f161db64e738256c21c3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzQwOjk5QjU2OjcyQUU5QjpBMTJGMkM6NkIwNDdDNDciLCJ2aXNpdG9yX2lkIjoiNTczOTU0OTEzOTQzNjYwMDM5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7bfdab97eb27a27106ec94514aa1a516861ec4cf4c930334910a59401c9c6303
hovercard-subject-tagissue:5049377927
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/9235/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9ef64a4d7f711364fb4c75166d797a44df4c766b9d835cead814eb0a4b414e49/IfcOpenShell/IfcOpenShell/issues/9235
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9ef64a4d7f711364fb4c75166d797a44df4c766b9d835cead814eb0a4b414e49/IfcOpenShell/IfcOpenShell/issues/9235
og:image:altBug Description Testmodel: Testmodel.ifc.txt Symptom After Perform Quantity Takeoff in Bonsai: Source GrossSideArea NetSideArea Bonsai 9.80815 m² 9.80815 m² Solibri 20.08 m² 9.81 m² Bonsai Net ≈ So...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePahlawanJoey
hostnamegithub.com
expected-hostnamegithub.com
None0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseed3f2e01f6b7672780c586c8af0e72726374d7b6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/9235#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F9235
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%2Fissues%2F9235
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9235
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9235
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9235
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 requests937 (937)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
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9235
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9235
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
Bug: GrossSideArea == NetSideArea in Bonsai QTO (openings not accounted for)https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#top
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/PahlawanJoey
PahlawanJoeyhttps://github.com/PahlawanJoey
on Aug 3, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#issue-5049377927
Testmodel.ifc.txthttps://github.com/user-attachments/files/30659490/Testmodel.ifc.txt
PahlawanJoeyhttps://github.com/PahlawanJoey
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
on Aug 3, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#event-28884892005
https://github.com/PahlawanJoey
PahlawanJoeyhttps://github.com/PahlawanJoey
on Aug 3, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#issuecomment-5165852397
@BIMvoicehttps://github.com/BIMvoice
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Aug 3, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#issuecomment-5166018126
@Moulthttps://github.com/Moult
@PahlawanJoeyhttps://github.com/PahlawanJoey
@Andrej730https://github.com/Andrej730
petruconduraruhttps://github.com/petruconduraru
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Aug 3, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#event-28886386168
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Aug 3, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#issuecomment-5166160092
#9236https://github.com/IfcOpenShell/IfcOpenShell/pull/9236
@Moulthttps://github.com/Moult
@PahlawanJoeyhttps://github.com/PahlawanJoey
@PahlawanJoeyhttps://github.com/PahlawanJoey
petruconduraruhttps://github.com/petruconduraru
on Aug 4, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#event-28929019143
Bonsai: fix wall side area axis for Y wallshttps://github.com/BIMvoice/IfcOpenShell/commit/25f938c8f22cd37febde8231e0a46a8580b2f1b4
25f938chttps://github.com/BIMvoice/IfcOpenShell/commit/25f938c8f22cd37febde8231e0a46a8580b2f1b4
petruconduraruhttps://github.com/petruconduraru
on Sep 30, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9235#event-32177082737
Bonsai: drop baked opening recovery, keep axis fixhttps://github.com/BIMvoice/IfcOpenShell/commit/d05edbda1ef0de63855cb21fa807cceb5c1448a8
d05edbdhttps://github.com/BIMvoice/IfcOpenShell/commit/d05edbda1ef0de63855cb21fa807cceb5c1448a8
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9235
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9235
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.