Title: CGAL does not return original edges like OpenCASCADE · Issue #6173 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: CGAL does not return original edges like OpenCASCADE · Issue #6173 · IfcOpenShell/IfcOpenShell
X Title: CGAL does not return original edges like OpenCASCADE · Issue #6173 · IfcOpenShell/IfcOpenShell
Description: In #5485 I described how the POLYHEDRON triangulation type was not supported in CGAL. As a workaround, 07fda60 was implemented. I just realised that the behaviour isn't quite as expected. Instead of preserving the original edges, it only...
Open Graph Description: In #5485 I described how the POLYHEDRON triangulation type was not supported in CGAL. As a workaround, 07fda60 was implemented. I just realised that the behaviour isn't quite as expected. Instead o...
X Description: In #5485 I described how the POLYHEDRON triangulation type was not supported in CGAL. As a workaround, 07fda60 was implemented. I just realised that the behaviour isn't quite as expected. Inste...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6173
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CGAL does not return original edges like OpenCASCADE","articleBody":"In #5485 I described how the POLYHEDRON triangulation type was not supported in CGAL. As a workaround, 07fda60 was implemented. I just realised that the behaviour isn't quite as expected. Instead of preserving the original edges, it only returns planar boundary edges (equivalent to Blender's internal dissolve edges by angle limit). This creates bugs #5862 and #5711.\n\nFor example given this shape I'd need the selected edges to be preserved, but CGAL dissolves them.\n\n\n\nSee sample file:\n\n[untitled.ifc.txt](https://github.com/user-attachments/files/18816562/untitled.ifc.txt)\n\nSee sample code:\n\n```python\nimport ifcopenshell\nimport ifcopenshell.geom\n\nifc_file = ifcopenshell.open('/home/dion/untitled.ifc')\nelement = ifc_file.by_id(95)\nsettings = ifcopenshell.geom.settings()\n# settings.set(\"context-ids\", [15])\n# settings.set(\"triangulation-type\", ifcopenshell.ifcopenshell_wrapper.POLYHEDRON_WITHOUT_HOLES)\n# shape = ifcopenshell.geom.create_shape(settings, element, geometry_library=\"hybrid-cgal-simple-opencascade\")\nshape = ifcopenshell.geom.create_shape(settings, element, geometry_library=\"opencascade\")\nprint(len(shape.edges)) # 40, good\nshape = ifcopenshell.geom.create_shape(settings, element, geometry_library=\"cgal\")\nprint(len(shape.edges)) # 32, bad\n```\n\nAlternatively if #5485 was supported that would also be a solution (a preferred solution?).","author":{"url":"https://github.com/Moult","@type":"Person","name":"Moult"},"datePublished":"2025-02-16T22:21:38Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6173"}
| 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:50c54cab-55e0-47f2-2005-b2051c6cc95f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF86:B142A:2017D3:2B4CA2:6B04B4D7 |
| html-safe-nonce | 7717eb78e1c33fc3faf62c79c09d3d85ada19231ef2775f9052baa411b1df349 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjg2OkIxNDJBOjIwMTdEMzoyQjRDQTI6NkIwNEI0RDciLCJ2aXNpdG9yX2lkIjoiODI3MzgzNDQ5MjY4NzU5NDcxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 652a20cce3f31d154be74bd08dc0b13f1337e17cdea36a7342ab0073005b9118 |
| hovercard-subject-tag | issue:2856367259 |
| 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/6173/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc3bf457aa867f8191612cf76b1ea9b9d18a03aad14650a752ecfc73a6a04faa/IfcOpenShell/IfcOpenShell/issues/6173 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc3bf457aa867f8191612cf76b1ea9b9d18a03aad14650a752ecfc73a6a04faa/IfcOpenShell/IfcOpenShell/issues/6173 |
| og:image:alt | In #5485 I described how the POLYHEDRON triangulation type was not supported in CGAL. As a workaround, 07fda60 was implemented. I just realised that the behaviour isn't quite as expected. Instead o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Moult |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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