Title: Support sloped roofs in space regeneration with clipped extrusion/B-rep fallback by CyrilWaechter · Pull Request #9243 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Support sloped roofs in space regeneration with clipped extrusion/B-rep fallback by CyrilWaechter · Pull Request #9243 · IfcOpenShell/IfcOpenShell
X Title: Support sloped roofs in space regeneration with clipped extrusion/B-rep fallback by CyrilWaechter · Pull Request #9243 · IfcOpenShell/IfcOpenShell
Description: Stacked on #9226. Summary Replaces the flat-extrusion space generation with a hybrid strategy: clipped extrusion (IfcExtrudedAreaSolid + IfcBooleanClippingResult) when the bounding envelope is piecewise-planar, with B-rep fallback for non-extrudable cases. Also fixes three regeneration issues: Z location drift between regenerations Cache invalidation when roofs/slabs are moved Non-deterministic regeneration caused by the space's own Body in the geometry tree Validation fixes From profiling and testing on a production model (~215k entities, 2,800 products, 754 spaces): Build the strategy tree only from bounding and height elements, in parallel, instead of converting every product twice (~21 s → ~0.8 s for strategy detection). Read the space placement after the depsgraph update when creating the first generation, so it no longer inherits the stale pre-move matrix. Take the regeneration reference point from the footprint of the lowest mesh face instead of its bounding-box centre, so concave rooms no longer resolve to a wall cross-section. Use get_placement() for B-rep surface positions (get_axis2placement was removed from ifcopenshell.util.placement). Add explicit ifcopenshell.api.geometry/boundary imports required by ty. Profiling (against #9005 baseline) Operation #9005 This PR Impact Geometry creation (570 elements) 0.607s 0.607s no change 2nd generation (cache hit) ~0.00s ~0.00s no change Height detection (cache lookup) ~0.00s ~0.00s no change Bisection + boundary lines 0.031s 0.031s no change Corner ray sampling — <0.001ms negligible BoundedBy cleanup — ~0.1ms negligible Strategy tree ~21s ~0.8s -96% Generated with the assistance of an AI coding tool.
Open Graph Description: Stacked on #9226. Summary Replaces the flat-extrusion space generation with a hybrid strategy: clipped extrusion (IfcExtrudedAreaSolid + IfcBooleanClippingResult) when the bounding envelope is piec...
X Description: Stacked on #9226. Summary Replaces the flat-extrusion space generation with a hybrid strategy: clipped extrusion (IfcExtrudedAreaSolid + IfcBooleanClippingResult) when the bounding envelope is piec...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/9243
X: @github
Domain: github.com
IPv4 address: 140.82.112.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:91559f88-11b4-8487-0ed1-8bf71f475893 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C588:1760D:1573167:1BF8C39:6B0508DD |
| html-safe-nonce | 7fd584b983284d1639990211a033c323315fefb548c5b92c0f895e73c8ae1c62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTg4OjE3NjBEOjE1NzMxNjc6MUJGOEMzOTo2QjA1MDhERCIsInZpc2l0b3JfaWQiOiIxNzYwOTYwOTQ1NjIwMDYwMzgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | be232819490e148ae06f616f61894300813890a16c47bf98381fbda41b76cd01 |
| hovercard-subject-tag | pull_request:4199497365 |
| 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/9243/files |
| twitter:image | https://avatars.githubusercontent.com/u/9622862?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9622862?s=400&v=4 |
| og:image:alt | Stacked on #9226. Summary Replaces the flat-extrusion space generation with a hybrid strategy: clipped extrusion (IfcExtrudedAreaSolid + IfcBooleanClippingResult) when the bounding envelope is piec... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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