Title: ifcgeom: fix --site-local-placement breaking relative positions with nested IfcSites by petruconduraru · Pull Request #8784 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: ifcgeom: fix --site-local-placement breaking relative positions with nested IfcSites by petruconduraru · Pull Request #8784 · IfcOpenShell/IfcOpenShell
X Title: ifcgeom: fix --site-local-placement breaking relative positions with nested IfcSites by petruconduraru · Pull Request #8784 · IfcOpenShell/IfcOpenShell
Description: Summary Fixes #6102. With decomposed sites (IfcSite nested under IfcSite, as in the buildingSMART PCERT Infra-Rail sample), --site-local-placement truncated each product's placement chain at its nearest IfcSite ancestor. Products under different sub-sites were therefore expressed in different coordinate frames, destroying their relative positions (the two rail tracks, 20 m apart, ended up 1.5 m apart — matching the reporter's screenshot). This change ignores only the outermost matching placement in the chain (a matching placement counts only if no placement higher in its PlacementRelTo chain also places a matching product), so all products end up in the single root-site coordinate system and relative positioning is preserved. This follows the direction of the existing TODO note in a4d5d4e about tracking whether an element sits above the element whose placement is being ignored. Single-site models are unaffected (the only site is the outermost match), and --building-local-placement semantics are untouched. Test plan Infra-Rail IFC4, --site-local-placement: tracks restored to exactly 20.000 m apart, 0/73 relative-position errors (was 72/73 displaced, worst 53.0 m), output expressed exactly in the root site frame. Infra-Rail IFC4X3_ADD2 (exercises the SCHEMA_IfcObjectPlacement_HAS_PlacementRelTo path): 0/73 relative errors. #7654 regression guard (GEOREF_00_Gladilova_AR, single site with terrain geometry, 2426 elements): every element including the site's own mesh equals inv(site_world) * default to 0.000000 m — the site-geometry behavior introduced for #7654 is preserved. No-flag output byte-equivalent before/after; --building-local-placement output unchanged. This PR contains AI-generated code, generated with the assistance of an AI coding tool.
Open Graph Description: Summary Fixes #6102. With decomposed sites (IfcSite nested under IfcSite, as in the buildingSMART PCERT Infra-Rail sample), --site-local-placement truncated each product's placement chain at it...
X Description: Summary Fixes #6102. With decomposed sites (IfcSite nested under IfcSite, as in the buildingSMART PCERT Infra-Rail sample), --site-local-placement truncated each product's placement chain a...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8784
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| 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:4696e34e-e8be-deb4-bdc1-2bea62fbc09f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8BF6:FE488:7AE934:9E5399:6B0508DF |
| html-safe-nonce | 04cc06a5b62cced8fdb55807478ddae766bbc6233fdf18e69c84bf6ee236e5d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkY2OkZFNDg4OjdBRTkzNDo5RTUzOTk6NkIwNTA4REYiLCJ2aXNpdG9yX2lkIjoiNDY5NzcxNjQyNzA2OTkxNzQwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f787897a614087da7be0dd82f4ae195f94181cc61e8f16f1cc39a85ca85c93d7 |
| hovercard-subject-tag | pull_request:4087152300 |
| 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/8784/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 | Summary Fixes #6102. With decomposed sites (IfcSite nested under IfcSite, as in the buildingSMART PCERT Infra-Rail sample), --site-local-placement truncated each product's placement chain at it... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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