Title: ifcgeom: keep cant twist in IfcSectionedSurface via IfcAxis2PlacementLinear (#8116) by petruconduraru · Pull Request #8451 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: ifcgeom: keep cant twist in IfcSectionedSurface via IfcAxis2PlacementLinear (#8116) by petruconduraru · Pull Request #8451 · IfcOpenShell/IfcOpenShell
X Title: ifcgeom: keep cant twist in IfcSectionedSurface via IfcAxis2PlacementLinear (#8116) by petruconduraru · Pull Request #8451 · IfcOpenShell/IfcOpenShell
Description: Fixes #8116. Problem An IfcSectionedSurface swept along a canted (superelevated) alignment renders without any cross-section twist: the end view never rotates, so cant/superelevation is lost. The directrix frame carries the correct twist, but IfcAxis2PlacementLinear throws it away. When Axis (and/or RefDirection) are omitted, the old code recomputed the local Z axis from the global up vector: Eigen::Vector3d up(0, 0, 1); axis = refDirection.cross(up.cross(refDirection)); That forces the placement into a world-vertical plane and discards the cant rotation baked into the reference-curve normal. Fix Per the schema, an omitted Axis defaults to the reference-curve normal and an omitted RefDirection to the reference-curve tangent. Take those directly from the incoming curve frame (m.col(2) and m.col(0)) instead of rebuilding the axis from global Z, then orthogonalize RefDirection against Axis as before. The four original branches are unified into "default Axis to curve normal, default RefDirection to curve tangent". The cases where Axis is given explicitly (Axis-only and Axis+RefDirection) are behaviourally unchanged; only the two omitted-Axis branches change, which are exactly the ones that dropped the cant. Verification Traced against the issue sample: IFCAXIS2PLACEMENTLINEAR(#pbde,$,$) (both omitted) on an IfcSegmentedReferenceCurve directrix with cant. With the curve normal as Axis, make_loft's frame remap yields the correct (lateral, up-canted, tangent) sweep frame. Matches the direction of the reporter's own proposed patch, and the reporter attached a before/after image confirming the visual result. Compilation is covered by CI's build-ifcopenshell. I do not have a local kernel build, so this is validated by static frame tracing rather than a rendered image; happy to iterate if a maintainer spots anything. 🤖 Generated with Claude Code
Open Graph Description: Fixes #8116. Problem An IfcSectionedSurface swept along a canted (superelevated) alignment renders without any cross-section twist: the end view never rotates, so cant/superelevation is lost. The d...
X Description: Fixes #8116. Problem An IfcSectionedSurface swept along a canted (superelevated) alignment renders without any cross-section twist: the end view never rotates, so cant/superelevation is lost. The d...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8451
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2f969b6e-ce21-dfc4-8a62-cc690bd4114f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94C8:1204FD:C2A8D1:FE0AA1:6B04DDBA |
| html-safe-nonce | ec2265168df2f45426b6d072b854232d9bff06d904c81bb69fa5abfabe344880 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEM4OjEyMDRGRDpDMkE4RDE6RkUwQUExOjZCMDREREJBIiwidmlzaXRvcl9pZCI6IjE1NzU5NTY2NTk1Njg5NTg5MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 323dfa331d1ed3e6370c7198978360aed23556d57ad0ad4da45bf692b0213a9b |
| hovercard-subject-tag | pull_request:4029273527 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/IfcOpenShell/IfcOpenShell/pull/8451/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Fixes #8116. Problem An IfcSectionedSurface swept along a canted (superelevated) alignment renders without any cross-section twist: the end view never rotates, so cant/superelevation is lost. The d... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6c35540a0a2991ee20bd053ba2601cce33f72cb1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width