Title: Bonsai: Extend Walls To Underside ignores roofs steeper than 60° and notches the wall at the eave · Issue #10038 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: Extend Walls To Underside ignores roofs steeper than 60° and notches the wall at the eave · Issue #10038 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: Extend Walls To Underside ignores roofs steeper than 60° and notches the wall at the eave · Issue #10038 · IfcOpenShell/IfcOpenShell
Description: Description bim.extend_walls_to_underside has two problems with steep roofs: Undersides steeper than 60° are ignored. Model.get_slab_clipping_bmesh keeps only faces whose world normal z is below −0.5. A 60° roof's underside comes out at ...
Open Graph Description: Description bim.extend_walls_to_underside has two problems with steep roofs: Undersides steeper than 60° are ignored. Model.get_slab_clipping_bmesh keeps only faces whose world normal z is below −0...
X Description: Description bim.extend_walls_to_underside has two problems with steep roofs: Undersides steeper than 60° are ignored. Model.get_slab_clipping_bmesh keeps only faces whose world normal z is below −0...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10038
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: Extend Walls To Underside ignores roofs steeper than 60° and notches the wall at the eave","articleBody":"## Description\n\n`bim.extend_walls_to_underside` has two problems with steep roofs:\n\n1. **Undersides steeper than 60° are ignored.** `Model.get_slab_clipping_bmesh` keeps only faces whose world normal z is below −0.5. A 60° roof's underside comes out at −0.49999996, so it is dropped. Anything steeper is always dropped. The wall is then extended only to whatever downward face is left. Usually that is the small eave end cut, so the wall ends up barely raised and is not clipped by the roof.\n2. **A notch at the wall base near the eave.** In `Model.clip_wall_to_slab`, each clip rectangle extends `margin` (1 unit) past its face in every direction (added in #7944 so the two slope tools overlap at a ridge). The downslope extension can carry a plane under a steeper neighbouring face. With a steep roof, the tool from the eave end cut reaches back under the roof's underside and cuts the wall down to about 0.8 ft above its base.\n\n## Steps to reproduce\n\nfile: [ROOF EXTEND - Copy.ifc.txt](https://github.com/user-attachments/files/33850638/ROOF.EXTEND.-.Copy.ifc.txt)\n\nSingle wall (`1OoTSJkEHFlhvuqAch7$wp`) under two `IfcRoof`s: one at 45° (`0C6L1B4Uj56gaiCuwbUmyv`) and one at 60° (`2zl1r_hdz128vmoaKhtzKa`). Feet project.\n\n1. Select the wall and both roofs, run `bpy.ops.bim.extend_walls_to_underside()`.\n2. The wall is clipped by the 45° roof only. Under the 60° roof it is not trimmed.\n3. Raise the 60° roof to 80° and run again. With (1) fixed, the wall now follows the 80° underside, but has a notch at its base just inside the eave.\n\nRepro file: `ROOF EXTEND.ifc` (to be attached).\n\n## Proposed fix\n\n- `get_slab_clipping_bmesh`: keep any downward-facing face (`world_normal_z \u003c -0.01`). Skip only near-vertical faces instead of a 60° cutoff.\n- `clip_wall_to_slab`: orient the in-plane `tangent2` upslope and apply the margin only upslope and across the slope, not downslope. The ridge overlap only needs the upslope side. Flat faces keep the symmetric margin. Recalculate the clip solid's normals after extruding, since the flip changes the rectangle's winding.\n\nThe angle change was checked by hand in Bonsai on the file above at 60° and 80°. The margin change is not yet tested. The margin change overlaps #9517, which rewrites this function as `clip_wall_to_slabs`.\n\nGenerated with the assistance of an AI coding tool.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-10-23T01:12:02Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10038"}
| 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:1bcec4cc-fffe-e261-8877-e181ea752027 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9410:34CC32:6DD46B:96E4B1:6B04A721 |
| html-safe-nonce | ef4f9499eff597601bfe77e07e1486acea272f08a8528ceae2ea245f575bc9fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDEwOjM0Q0MzMjo2REQ0NkI6OTZFNEIxOjZCMDRBNzIxIiwidmlzaXRvcl9pZCI6IjM0OTQ5ODU1MDM4MzE1MzMzNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 303da289fa232f4fad6b78660f15975fde98aaa2779b38912437152b61208fd3 |
| hovercard-subject-tag | issue:5990090872 |
| 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/10038/issue_layout |
| twitter:image | https://opengraph.githubassets.com/61d710dd8598f767ac21b400a0694707caa11fcc46de689e3e87886ad352c67c/IfcOpenShell/IfcOpenShell/issues/10038 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61d710dd8598f767ac21b400a0694707caa11fcc46de689e3e87886ad352c67c/IfcOpenShell/IfcOpenShell/issues/10038 |
| og:image:alt | Description bim.extend_walls_to_underside has two problems with steep roofs: Undersides steeper than 60° are ignored. Model.get_slab_clipping_bmesh keeps only faces whose world normal z is below −0... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theoryshaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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