Title: Blender freezes trying to open a file with `IfcSurfaceOfLinearExtrusion` · Issue #8013 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Blender freezes trying to open a file with `IfcSurfaceOfLinearExtrusion` · Issue #8013 · IfcOpenShell/IfcOpenShell
X Title: Blender freezes trying to open a file with `IfcSurfaceOfLinearExtrusion` · Issue #8013 · IfcOpenShell/IfcOpenShell
Description: Opening up the following file in Bonsai, freezes blender. surface_of_linear_extrusion.ifc.txt The following is AI's assessment.... The fix is a single-line change. Here's what was happening and why it mattered: What IfcSurfaceOfLinearExt...
Open Graph Description: Opening up the following file in Bonsai, freezes blender. surface_of_linear_extrusion.ifc.txt The following is AI's assessment.... The fix is a single-line change. Here's what was happening and why...
X Description: Opening up the following file in Bonsai, freezes blender. surface_of_linear_extrusion.ifc.txt The following is AI's assessment.... The fix is a single-line change. Here's what was happening...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8013
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Blender freezes trying to open a file with `IfcSurfaceOfLinearExtrusion`","articleBody":"Opening up the following file in Bonsai, freezes blender. \n[surface_of_linear_extrusion.ifc.txt](https://github.com/user-attachments/files/27107500/surface_of_linear_extrusion.ifc.txt)\n\n\nThe following is AI's assessment....\n\nThe fix is a single-line change. Here's what was happening and why it mattered:\n\n----------\n\n**What `IfcSurfaceOfLinearExtrusion` represents**\n\nIt's a mathematical surface formed by sweeping a profile curve along a direction vector for a finite distance — like sliding a bent wire through space to trace out a ribbon or wall face. The IFC schema gives it three key inputs: the curve to sweep (`SweptCurve`), the direction to sweep along (`ExtrudedDirection`), and how far to sweep (`Depth`).\n\n----------\n\n**The bug**\n\nThe mapper in IfcSurfaceOfLinearExtrusion.cpp correctly reads `SweptCurve` and `ExtrudedDirection`, but the `Depth` argument it hands to the geometry kernel was:\n\n```cpp\nstd::numeric_limits\u003cdouble>::infinity()\n\n```\n\n`inst->Depth()` — the actual value from the IFC file — was never read at all.\n\n----------\n\n**Why infinity freezes Blender**\n\nThe geometry kernel (OpenCASCADE) receives a surface with literally infinite extent. When Bonsai tries to display the element, OCC attempts to compute a bounding box and tessellate the surface into triangles. Both operations iterate over the surface's parametric domain, which is `[0, ∞)`. That loop never terminates — Blender hangs.\n\n----------\n\n**The fix**\n\n```cpp\n// Before\nstd::numeric_limits\u003cdouble>::infinity()\n\n// After\ninst->Depth() * length_unit_\n\n```\n\n`inst->Depth()` reads the value actually stored in the IFC entity (3.0 in the example file). The `* length_unit_` scales it from the file's unit system (metres, millimetres, etc.) into the kernel's internal unit — exactly the same pattern used by `IfcExtrudedAreaSolid`, the solid equivalent of this entity.","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-04-26T23:32:44Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8013"}
| 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:fdc86243-e573-fbc6-8d76-e86b6bfbff1f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D250:32A711:7649E7:A309C1:6B04AA32 |
| html-safe-nonce | 58729d86559e9b4eac99e9b0ba55636cb18bd11812ac9e3107dc85786c1604ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjUwOjMyQTcxMTo3NjQ5RTc6QTMwOUMxOjZCMDRBQTMyIiwidmlzaXRvcl9pZCI6IjM4MDA5MTg2MzEzNzA3NjI4MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7d6806f06ec62a4fe7621cdbac275d677b8a7ba6ff2f919209d369a1ec3ab37f |
| hovercard-subject-tag | issue:4332280930 |
| 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/8013/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a8774b923e1ec430842d17105766a6b26e48d1bc40d5a4b7b26916e36b16eac/IfcOpenShell/IfcOpenShell/issues/8013 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a8774b923e1ec430842d17105766a6b26e48d1bc40d5a4b7b26916e36b16eac/IfcOpenShell/IfcOpenShell/issues/8013 |
| og:image:alt | Opening up the following file in Bonsai, freezes blender. surface_of_linear_extrusion.ifc.txt The following is AI's assessment.... The fix is a single-line change. Here's what was happening and why... |
| 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