Title: Bonsai: set a default geometry library, and reload with a different one, from the UI · Issue #10057 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: set a default geometry library, and reload with a different one, from the UI · Issue #10057 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: set a default geometry library, and reload with a different one, from the UI · Issue #10057 · IfcOpenShell/IfcOpenShell
Description: The geometry library used when loading IFC geometry (Hybrid CGAL-OCC, OpenCASCADE, CGAL, CGAL Simple) is a per-scene setting. It defaults to Hybrid CGAL-OCC and can only be changed when you open an IFC with advanced mode enabled. There i...
Open Graph Description: The geometry library used when loading IFC geometry (Hybrid CGAL-OCC, OpenCASCADE, CGAL, CGAL Simple) is a per-scene setting. It defaults to Hybrid CGAL-OCC and can only be changed when you open an...
X Description: The geometry library used when loading IFC geometry (Hybrid CGAL-OCC, OpenCASCADE, CGAL, CGAL Simple) is a per-scene setting. It defaults to Hybrid CGAL-OCC and can only be changed when you open an...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10057
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: set a default geometry library, and reload with a different one, from the UI","articleBody":"The geometry library used when loading IFC geometry (Hybrid CGAL-OCC, OpenCASCADE, CGAL, CGAL Simple) is a per-scene setting. It defaults to Hybrid CGAL-OCC and can only be changed when you open an IFC with advanced mode enabled. There is no way to say \"always load with OpenCASCADE\". After a file is open, there is also no simple way to reload its geometry with a different library to compare them.\n\nThe library matters: some models load correctly only with one of them. For example, CGAL Simple drops boolean results.\n\n### Proposal\n\n1. **An add-on preference** under Preferences → Add-ons → Bonsai → Model → Geometry Loading. It sets the default library, deflection tolerance and angular tolerance.\n - New scenes, including File → New, start with these.\n - A saved `.blend` that already has its own settings keeps them.\n2. **A Geometry Loading panel** in Project Setup, shown when a project is loaded, with:\n - the scene's library and tolerances;\n - **Reload Selected** and **Reload All**, which reload the geometry with the current settings;\n - **Use My Default**, shown when the scene's settings differ from the preference;\n - **Use as My Default**, which saves the scene's settings to the preference.\n\n### Implementation notes\n\n- To tell scenes that chose a setting from untouched ones, a new scene flag, `has_geometry_settings`, is set when the settings are changed. Older scenes with non-default values count as having chosen.\n- `load_post` applies the default, which needs `load_post` to stay `@persistent`.\n\nI have a working implementation, tested headless in Blender 5.1 and by hand, and will open a PR.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-10-24T15:39:02Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10057"}
| 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:4cb2ebbf-6dab-c1af-e6e9-09e7c46f3ae2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD46:269A50:1450DC:1ABA25:6B04CA67 |
| html-safe-nonce | a01ae80b8a6b75b9f1fed05e6e2dc47e3b164ac4dbda98b1774629e413a85cb9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDQ2OjI2OUE1MDoxNDUwREM6MUFCQTI1OjZCMDRDQTY3IiwidmlzaXRvcl9pZCI6IjE5Nzk4MjIyMzAyMTE2NTE1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f3864c940ca5429fabe0b743066d2f1158e9a5a7d20096a8db6baec7e59d3b4f |
| hovercard-subject-tag | issue:6014637244 |
| 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/10057/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6291243bdeb2b6d793b566d7b49923b396175a25e79bb78d0d2a0e2821433acd/IfcOpenShell/IfcOpenShell/issues/10057 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6291243bdeb2b6d793b566d7b49923b396175a25e79bb78d0d2a0e2821433acd/IfcOpenShell/IfcOpenShell/issues/10057 |
| og:image:alt | The geometry library used when loading IFC geometry (Hybrid CGAL-OCC, OpenCASCADE, CGAL, CGAL Simple) is a per-scene setting. It defaults to Hybrid CGAL-OCC and can only be changed when you open an... |
| 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 | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| 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