Title: CGAL kernel skips IfcSweptDiskSolid when directrix is IfcIndexedPolyCurve with IfcArcIndex segments · Issue #8106 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: CGAL kernel skips IfcSweptDiskSolid when directrix is IfcIndexedPolyCurve with IfcArcIndex segments · Issue #8106 · IfcOpenShell/IfcOpenShell
X Title: CGAL kernel skips IfcSweptDiskSolid when directrix is IfcIndexedPolyCurve with IfcArcIndex segments · Issue #8106 · IfcOpenShell/IfcOpenShell
Description: Bug Description Bug The CGAL geometry kernel silently produces no mesh for IfcSweptDiskSolid items whose Directrix is an IfcIndexedPolyCurve containing IfcArcIndex segments. OpenCascade tessellates the same items correctly. Repro Found o...
Open Graph Description: Bug Description Bug The CGAL geometry kernel silently produces no mesh for IfcSweptDiskSolid items whose Directrix is an IfcIndexedPolyCurve containing IfcArcIndex segments. OpenCascade tessellates...
X Description: Bug Description Bug The CGAL geometry kernel silently produces no mesh for IfcSweptDiskSolid items whose Directrix is an IfcIndexedPolyCurve containing IfcArcIndex segments. OpenCascade tessellates...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8106
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CGAL kernel skips IfcSweptDiskSolid when directrix is IfcIndexedPolyCurve with IfcArcIndex segments","articleBody":"### Bug Description\n\n## Bug\n\nThe CGAL geometry kernel silently produces no mesh for `IfcSweptDiskSolid`\nitems whose `Directrix` is an `IfcIndexedPolyCurve` containing `IfcArcIndex`\nsegments. OpenCascade tessellates the same items correctly.\n\n## Repro\n\nFound out after noticing roundtripping parametric railings in Bonsai with wall supports displayed only some parts of the supports.\n\n\u003cimg width=\"710\" height=\"737\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/74373ed2-17c7-474f-837a-536587186d8e\" />\n\ninstead of\n\n\u003cimg width=\"916\" height=\"777\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/8fdb493e-3499-4236-b8a3-41732cc54e38\" />\n\nWeirdly manual deleting a representation in the representation UI triggers correctly displaying the geometry.\n\n\u003cimg width=\"337\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c2ccd0c2-e1da-47c5-bf27-a7d02e653a06\" />\n\nCouldn't manage to bisect any working version, most likely is like that since forever ? Can anyone reproduce a setup working as intended?\n\nAttach `railing-repro.ifc` (a Bonsai-saved wall-mounted handrail — 7 items:\n3 `IfcExtrudedAreaSolid` + 4 `IfcSweptDiskSolid`).\n\n```python\nimport ifcopenshell, ifcopenshell.geom\nf = ifcopenshell.open(\"railing-repro.ifc\")\nrailing = f.by_type(\"IfcRailing\")[0]\ns = ifcopenshell.geom.settings()\nfor lib in (\"opencascade\", \"cgal\", \"cgal-simple\"):\n r = ifcopenshell.geom.create_shape(s, railing, geometry_library=lib)\n print(f\"{lib}: {len(r.geometry.verts)//3} verts\")\n```\n\nOutput\nopencascade: 1924 verts (all 7 items)\ncgal: 96 verts (only the 3 IfcExtrudedAreaSolid items)\ncgal-simple: 96 verts (only the 3 IfcExtrudedAreaSolid items)\nExpected\nCGAL should tessellate the 4 IfcSweptDiskSolid items the same way OpenCascade does, or raise an error — not silently emit an empty mesh for them.\n\nVersions tested\nReproduces on ifcopenshell 0.8.3.post2, 0.8.4, 0.8.4.post1, 0.8.5, and current main. Not a regression — appears to have always been this way.\n\n### Attachments\n\n[railing-repro.ifc.txt](https://github.com/user-attachments/files/28283541/railing-repro.ifc.txt)\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/Gorgious56","@type":"Person","name":"Gorgious56"},"datePublished":"2026-05-26T20:44:21Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8106"}
| 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:10a27b0d-9480-35f9-6282-5df0193c09c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B34E:2366B8:79E6C6:A35043:6B04AD19 |
| html-safe-nonce | 81ecd77f2fd646a691b20b9c24eaf88eacd1c9b5625a4f095bb5522aa27d0662 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzRFOjIzNjZCODo3OUU2QzY6QTM1MDQzOjZCMDRBRDE5IiwidmlzaXRvcl9pZCI6IjgzNTgxOTA0ODA3NjQ0ODA3OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cb78d46be054c4a454ea212d286a16da28d59f2a3b3b2360c82e1de238b6241e |
| hovercard-subject-tag | issue:4527374251 |
| 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/8106/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ace1f12a2c9499a75e5ab0111a0909096332b4da6fa4137ff45ddf013d9e0ba/IfcOpenShell/IfcOpenShell/issues/8106 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ace1f12a2c9499a75e5ab0111a0909096332b4da6fa4137ff45ddf013d9e0ba/IfcOpenShell/IfcOpenShell/issues/8106 |
| og:image:alt | Bug Description Bug The CGAL geometry kernel silently produces no mesh for IfcSweptDiskSolid items whose Directrix is an IfcIndexedPolyCurve containing IfcArcIndex segments. OpenCascade tessellates... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Gorgious56 |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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