Title: IfcSectionedSurface isn't rendered correctly because of IfcAxis2PlacementLinear · Issue #8116 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: IfcSectionedSurface isn't rendered correctly because of IfcAxis2PlacementLinear · Issue #8116 · IfcOpenShell/IfcOpenShell
X Title: IfcSectionedSurface isn't rendered correctly because of IfcAxis2PlacementLinear · Issue #8116 · IfcOpenShell/IfcOpenShell
Description: Bug Description @aothms @civilx64 please have a look at this and let me know the best way to proceed. I didn't want to commit a change since the last time I did that it would have negatively impacted your work on the VS. The sample file ...
Open Graph Description: Bug Description @aothms @civilx64 please have a look at this and let me know the best way to proceed. I didn't want to commit a change since the last time I did that it would have negatively impact...
X Description: Bug Description @aothms @civilx64 please have a look at this and let me know the best way to proceed. I didn't want to commit a change since the last time I did that it would have negatively im...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8116
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IfcSectionedSurface isn't rendered correctly because of IfcAxis2PlacementLinear","articleBody":"### Bug Description\n\n@aothms @civilx64 please have a look at this and let me know the best way to proceed. I didn't want to commit a change since the last time I did that it would have negatively impacted your work on the VS.\n\nThe sample file attached is an IfcSegmentReferenceCurve alignment with an IfcSectionSurface swept along it.\nThe horizontal alignment is straight, the vertical is flat (no gradient), and the cant segment is a clothoid so linear transition. The twist due to cant is not being properly considered when making the loft for the IfcSectionedSurface.\n\nGeneral perspective\n\n\u003cimg width=\"871\" height=\"489\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/fdc360f1-30a3-4fbb-8ee6-b40762109ffd\" />\n\nElevation View - Expected gain in elevation due to cant. This is the deviating elevation.\n\n\u003cimg width=\"990\" height=\"265\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7368c0e9-8920-4db1-ba2f-f045ba212b8f\" />\n\nEnd View - Looking down the axis of the surface, it is expected that it would rotate due to cant, but it is not.\n\n\u003cimg width=\"457\" height=\"233\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b8a2ab8d-9d88-4a34-9ccd-2402fbbf2292\" />\n\nThe core problem is in IfcAxis2PlacementLinear.cpp\nhttps://github.com/IfcOpenShell/IfcOpenShell/blob/335ee1a1bb80922e4a96e3a92a27671ea92b60d7/src/ifcgeom/mapping/IfcAxis2PlacementLinear.cpp#L65-L69\n\nWhen Axis and RefDirection are not given, they are taken from the curve. That's not what this code does.\n\nThe fix is\n\n~~~\n } else if (!hasAxis && !hasRef) {\n refDirection = m->components().col(0).head\u003c3>(); // RefDirection is the curve tangent when omitted\n axis = m->components().col(2).head\u003c3>(); // Axis is the curve normal when omitted\n } else {\n~~~\n\nThis also brings into question what to do with this case\nhttps://github.com/IfcOpenShell/IfcOpenShell/blob/335ee1a1bb80922e4a96e3a92a27671ea92b60d7/src/ifcgeom/mapping/IfcAxis2PlacementLinear.cpp#L60-L65\n\nAxis isn't given but RefDirection is - should the implementation be changed to\n~~~\n } else if (!hasAxis && hasRef) {\n taxonomy::direction3::ptr r = taxonomy::cast\u003ctaxonomy::direction3>(map(inst->RefDirection()));\n refDirection = *r->components_;\n axis = m->components().col(2).head\u003c3>(); // Axis is the curve normal when omitted\n~~~\n\nApplying the fix results in the correct sectioned surface\n\n\u003cimg width=\"722\" height=\"214\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5ec9f0a5-63c7-441f-bb4d-aaeae208a02b\" />\n\n### Attachments\n\n[IfcSectionedSurface.ifc.txt](https://github.com/user-attachments/files/28357873/IfcSectionedSurface.ifc.txt)\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/RickBrice","@type":"Person","name":"RickBrice"},"datePublished":"2026-05-28T22:45:45Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8116"}
| 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:7ba72f4d-0d9c-5566-3d10-dd33987e6257 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED70:1760D:34BB30:466E18:6B04B98C |
| html-safe-nonce | 7453dabc1788bc3cac30650f2f33054842c7794a1ee93b41885391969fde636c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDcwOjE3NjBEOjM0QkIzMDo0NjZFMTg6NkIwNEI5OEMiLCJ2aXNpdG9yX2lkIjoiNzM4MjEwNjc2ODQ0MjQ0MDA3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 436e6233e5fccc4022b44400ea9b9a3fdbaa060879dc5150f2343c4b803d80e1 |
| hovercard-subject-tag | issue:4544337129 |
| 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/8116/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c065e012af71588cf8fc5cae30d8ce2e39dc4437aeb37c6fbe89ff987452404/IfcOpenShell/IfcOpenShell/issues/8116 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c065e012af71588cf8fc5cae30d8ce2e39dc4437aeb37c6fbe89ff987452404/IfcOpenShell/IfcOpenShell/issues/8116 |
| og:image:alt | Bug Description @aothms @civilx64 please have a look at this and let me know the best way to proceed. I didn't want to commit a change since the last time I did that it would have negatively impact... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RickBrice |
| 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