Title: Bonsai: masonry above windows missing vs Solibri (uncontained elements hidden in Unsorted) · Issue #9372 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: masonry above windows missing vs Solibri (uncontained elements hidden in Unsorted) · Issue #9372 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: masonry above windows missing vs Solibri (uncontained elements hidden in Unsorted) · Issue #9372 · IfcOpenShell/IfcOpenShell
Description: Bug Description On an Adomi IFC2X3 CoordinationView export, masonry around windows is missing in the Bonsai 3D viewport. The same objects are present in Solibri. The host walls do load, so the facade shows rectangular holes above (and at...
Open Graph Description: Bug Description On an Adomi IFC2X3 CoordinationView export, masonry around windows is missing in the Bonsai 3D viewport. The same objects are present in Solibri. The host walls do load, so the faca...
X Description: Bug Description On an Adomi IFC2X3 CoordinationView export, masonry around windows is missing in the Bonsai 3D viewport. The same objects are present in Solibri. The host walls do load, so the faca...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9372
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: masonry above windows missing vs Solibri (uncontained elements hidden in Unsorted)","articleBody":"### Bug Description\n\nOn an Adomi IFC2X3 CoordinationView export, masonry around windows is missing in the Bonsai 3D viewport. The same objects are present in Solibri.\n\nThe host walls *do* load, so the facade shows rectangular holes above (and at) the window frames where the lintels / brick bands / sills should be.\n\n#### Steps to reproduce\n\n1. Open the attached IFC in Bonsai (BonsaiPR build below) with default load settings.\n2. Look at an exterior facade with windows (any storey; screenshot 1 is `-1 kelder`).\n3. Compare with the same file in Solibri.\n\n#### Expected result\n\nWindow lintels, brick bands and sills that exist in the IFC (and that Solibri draws) are visible in the Bonsai viewport.\n\n#### Actual result\n\nThose objects are absent. The surrounding `IfcWall`s that *are* spatially contained still show, so the openings they leave behind look like missing geometry.\n\nExample GUIDs that Solibri shows and Bonsai does not:\n\n| GlobalId | Class | Type | Role |\n|---|---|---|---|\n| `0KjAAKl3H7Ox4l39GZTaaj` | `IfcWall` | `A21-W-04:` | ~300 mm lintel above the window |\n| `0KjAEKl3H7OvCl39GZTaaj` | `IfcCovering` (`CLADDING`) | `B41-BBE-:waterslag gres B=65 H=60 T2` | window drip / sill |\n\nThis is not limited to those two IDs. In this file **324** `IfcElement`s have no `IfcRelContainedInSpatialStructure`:\n\n- 48× `IfcWall` type `A21-W-04:` (lintels)\n- 48× `IfcWall` type `A21-W-06:` (lintels)\n- 76× `IfcWall` type `Z2--M-M3:Metselwerk gebakken (Wanden) -0-3D` (brick band)\n- 76× `IfcCovering` type `B41-BBE-:waterslag gres B=65 H=60 T2`\n- 76× `IfcCovering` type `B41-CBP-:vensterbank plaat B=150 T2`\n\nAll 3167 *contained* elements of other classes load as expected. Contained `IfcWall`s in the same file also use `Body` / `SurfaceModel` / `IfcFaceBasedSurfaceModel`, so the representation type itself is not the discriminator.\n\n### Analysis\n\nChecked with IfcOpenShell 0.8.5 (`ifcopenshell.geom.create_shape`, `util.element.get_container`, representation / placement / style dump). Geometry kernel failure is **ruled out**.\n\nFor `0KjAAKl3H7Ox4l39GZTaaj`:\n\n- `IfcShapeRepresentation` `Body` / `SurfaceModel` → `IfcFaceBasedSurfaceModel` with one `IfcConnectedFaceSet` of 6 faces (closed box)\n- `ContextOfItems` is the project's `IfcGeometricRepresentationContext` `#16` (`ContextType='Model'`). Not `$` (so not [#5695](https://github.com/IfcOpenShell/IfcOpenShell/issues/5695) / [#6120](https://github.com/IfcOpenShell/IfcOpenShell/issues/6120))\n- `create_shape()` succeeds: 8 verts, 12 faces, bbox ≈ 3.24 × 0.12 × 0.30 m\n- No openings, no mapped type geometry (`IfcWallType.RepresentationMaps` is empty), so not [#9348](https://github.com/IfcOpenShell/IfcOpenShell/issues/9348)\n- `IfcStyledItem` → `IfcSurfaceStyle` `'Metselwerk gebakken (Wanden) -0-'`, `Side=.BOTH.`, transparency `0.`\n- **No spatial container** (`ContainedInStructure` empty, `get_container()` is `None`)\n- Placement is still parented to the storey: `IfcLocalPlacement` chain goes `IfcWall` → … → `IfcBuildingStorey` `#227` `'00 begane grond'` → `IfcBuilding` → `IfcSite`\n\nSame pattern on the covering GUID (valid 8-vertex box at the sill, no container, placement parented to the same storey).\n\nFile stats: IFC2X3, millimetres, Adomi 2026.0.5 / ADM2IFC, CoordinationView, 3503 products (well under the default element-range cap), 0 `IfcGeometricRepresentationSubContext`s, 0 representations with null `ContextOfItems`.\n\n#### Likely cause (Bonsai)\n\n`bonsai.tool.collector.Collector.assign` sends products with no container to the Blender collection **`Unsorted`**, and `set_layer_collection_visibility` **hides that collection by default**:\n\nhttps://github.com/IfcOpenShell/IfcOpenShell/blob/v0.8.0/src/bonsai/bonsai/tool/collector.py\n\n```python\nelif container := ifcopenshell.util.element.get_container(element):\n ...\nelse:\n collection = cls._create_project_child_collection(\"Unsorted\")\n cls.link_collection_object_safe(collection, obj)\n```\n\n```python\nif name in (\n \"IfcTypeProduct\",\n \"IfcStructuralItem\",\n \"Unsorted\",\n):\n layer_collection.hide_viewport = True\n```\n\nSo the meshes are created, then parked in a hidden collection. Solibri does not apply that filter, which matches the screenshots. The same Unsorted-hiding behaviour was noted in [#7070](https://github.com/IfcOpenShell/IfcOpenShell/issues/7070) for a newly classed object; here it hits hundreds of already-authored facade parts on import.\n\nI have not stepped this in a live Bonsai session for this file; the IFC data plus `collector.py` make it the most likely explanation. Unhiding `Unsorted` in the outliner should confirm it in a few seconds.\n\n#### Contributing file issue (Adomi)\n\nCoordinationView normally expects `IfcRelContainedInSpatialStructure`. Adomi wrote a placement relative to the storey but omitted the containment relationship. Solibri still draws the products; Bonsai treats “no container” as “hide in Unsorted”.\n\n#### Other causes considered and ruled out\n\n| Hypothesis | Why not |\n|---|---|\n| `create_shape` / boolean / kernel failure | Tessellation succeeds for all sampled uncontained lintels |\n| Null `ContextOfItems` | Context `#16` is assigned |\n| Void limit / element range | 0 openings; 3503 products |\n| Mapped type reuse with openings ([#9348](https://github.com/IfcOpenShell/IfcOpenShell/issues/9348)) | No `RepresentationMaps`, no openings |\n| `SurfaceModel` unsupported | 1088 *contained* `IfcWall`s use the same `Body`/`SurfaceModel` and *are* visible |\n| Transparent / NEGATIVE surface style | `Side=.BOTH.`, transparency `0.` |\n\n#### Suggested directions\n\n1. **Workaround:** Outliner → collection `Unsorted` → enable viewport visibility (eye). The lintels / sills should appear.\n2. On load, warn that *n* products have Body geometry but no spatial container and were put in hidden `Unsorted`.\n3. Optionally infer a container from `IfcLocalPlacement.PlacementRelTo` when that placement belongs to an `IfcBuildingStorey` (true for both example GUIDs).\n4. Optionally do not hide `Unsorted` when it contains `IfcElement`s with a Body representation.\n\n### Attachments\n\n**Screenshot 1 — Bonsai:** masonry / lintels missing above every window.\n\n\n\n**Screenshot 2 — Solibri:** the same objects are present.\n\n\n\n[Issue_9372.ifc.txt](https://github.com/user-attachments/files/31557771/Issue_9372.ifc.txt)\nModel renamed to .ifc.txt to be able to upload it\n\n### Debug and Error Output\n\nBonsaiPR:\n\n```\nblender_version: 5.2.0 LTS\nbonsai_version: 0.8.0-alpha260828\nbonsai_commit_hash: 889a590\nbonsai_commit_date: 2026-08-28T13:37:14+02:00\nbonsai_git_branch: build-0.8.0-alpha2608281323\n```\n\n@BIMvoice ","author":{"url":"https://github.com/PahlawanJoey","@type":"Person","name":"PahlawanJoey"},"datePublished":"2026-08-28T14:16:37Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9372"}
| 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:c6c4b962-39b7-eb8a-aca0-5b236fdf311d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A818:AF327:1ADE2A:2506F0:6B04664C |
| html-safe-nonce | d1856ec5b5c803ef381cd2bed954eb14b84e35aa3ee4495ca453dfe807c89809 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODE4OkFGMzI3OjFBREUyQToyNTA2RjA6NkIwNDY2NEMiLCJ2aXNpdG9yX2lkIjoiMTY1NDgyMDE1NDkyOTMxMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c7a07a0a5a0f7aeb1cf01497915e01448ca66f71dc2e83a045b5526e4d24e0fd |
| hovercard-subject-tag | issue:5279105528 |
| 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/9372/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c1a23c89f2bc7de7da99f6ce65bfeabea4f421f1d3488c58299b2720ca17084/IfcOpenShell/IfcOpenShell/issues/9372 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c1a23c89f2bc7de7da99f6ce65bfeabea4f421f1d3488c58299b2720ca17084/IfcOpenShell/IfcOpenShell/issues/9372 |
| og:image:alt | Bug Description On an Adomi IFC2X3 CoordinationView export, masonry around windows is missing in the Bonsai 3D viewport. The same objects are present in Solibri. The host walls do load, so the faca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PahlawanJoey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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