Title: Retry boolean CUT that OCCT reports done but subtracts no volume (#5630) by petruconduraru · Pull Request #8499 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Retry boolean CUT that OCCT reports done but subtracts no volume (#5630) by petruconduraru · Pull Request #8499 · IfcOpenShell/IfcOpenShell
X Title: Retry boolean CUT that OCCT reports done but subtracts no volume (#5630) by petruconduraru · Pull Request #8499 · IfcOpenShell/IfcOpenShell
Description: Fixes #5630. Problem An IfcOpeningElement that voids an IfcGeographicElement terrain (a dense IfcPolygonalFaceSet) does not cut: the opening solid overlaps the terrain, yet the converted terrain keeps its full volume. Root cause The terrain converts to a valid closed solid and the opening is a proper solid box whose XY sits inside the terrain and whose Z spans its full thickness, so a large removal is expected. But OCCT BRepAlgoAPI_Cut returns IsDone at the tight default fuzzy value while subtracting essentially nothing, and because it reports success the existing escalating-fuzziness retry never runs. Sweeping fuzziness confirms it: at fuzz >= 5e-4 the cut removes ~17%, at fuzz <= 1e-4 it is a no-op. Fix After a CUT is deemed valid, and only while a higher-fuzziness retry is still permitted, compare the result volume to the first operand. If the removed fraction is negligible (< 1e-4 of operand A), treat the CUT as a failure so the existing escalation runs and finds a fuzzy value at which the section is actually computed. When no retry is left the result is accepted as before, so a genuinely tiny legitimate cut can never lose its outcome. New diagnostic GEO 156. Verification (OCC 7.9.2) volume verts manifold terrain before 7330.878 (no hole) 459 closed terrain after 6058.593 (real hole, -1272) 377 closed Regression: five currently-passing cut models (#619, #4118, #5473, #5186, #511) are byte-identical before and after, and across the full 1447-object source file exactly one product (the terrain) changes. The guard only fires when OCCT reports a successful CUT that removed ~nothing, so passing cuts are untouched. 🤖 Generated with Claude Code
Open Graph Description: Fixes #5630. Problem An IfcOpeningElement that voids an IfcGeographicElement terrain (a dense IfcPolygonalFaceSet) does not cut: the opening solid overlaps the terrain, yet the converted terrain ke...
X Description: Fixes #5630. Problem An IfcOpeningElement that voids an IfcGeographicElement terrain (a dense IfcPolygonalFaceSet) does not cut: the opening solid overlaps the terrain, yet the converted terrain ke...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8499
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| 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:3172e09d-5e44-dceb-57ae-556c0110a855 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D310:3A6E49:6B2A48:8A917D:6B05046F |
| html-safe-nonce | c631629e6b23c80033c98365a919e12fb4c4475852efbcdf4261a24a95585834 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzEwOjNBNkU0OTo2QjJBNDg6OEE5MTdEOjZCMDUwNDZGIiwidmlzaXRvcl9pZCI6Ijc0MTUxNzgwMzI3ODEwNzc1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 380404f7e67bdc741bf3a1b426b2404ae5c42957c24cc302eb5e1e27c1b51f64 |
| hovercard-subject-tag | pull_request:4034028720 |
| 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/8499/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Fixes #5630. Problem An IfcOpeningElement that voids an IfcGeographicElement terrain (a dense IfcPolygonalFaceSet) does not cut: the opening solid overlaps the terrain, yet the converted terrain ke... |
| 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