René's URL Explorer Experiment


Title: Bonsai: window preview is offset by the host wall's translation · Issue #9346 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: window preview is offset by the host wall's translation · Issue #9346 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: window preview is offset by the host wall's translation · Issue #9346 · IfcOpenShell/IfcOpenShell

Description: Bug Description The blue IfcWindow occurrence preview is displaced from a translated host wall even though the insertion point is snapped to that wall. Expected: the preview is drawn on the wall at the snapped insertion point. Actual: wh...

Open Graph Description: Bug Description The blue IfcWindow occurrence preview is displaced from a translated host wall even though the insertion point is snapped to that wall. Expected: the preview is drawn on the wall at...

X Description: Bug Description The blue IfcWindow occurrence preview is displaced from a translated host wall even though the insertion point is snapped to that wall. Expected: the preview is drawn on the wall at...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9346

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: window preview is offset by the host wall's translation","articleBody":"## Bug Description\n\nThe blue `IfcWindow` occurrence preview is displaced from a translated host wall even though the insertion point is snapped to that wall.\n\nExpected: the preview is drawn on the wall at the snapped insertion point.\n\nActual: when the host wall's object origin is away from the world origin, the preview is displaced by approximately the wall's world translation. In the observed case, the wall origin and snap X coordinate are `10 m`, and the preview is drawn roughly another `10 m` away. Walls whose origins are close to the world origin appear correct.\n\nSteps to reproduce:\n\n1. Create an IFC project and a wall whose object origin is away from the world origin, for example at X = `10 m`.\n2. Create or select an `IfcWindowType`.\n3. Activate the Window Tool.\n4. Hover over the translated wall so the insertion point snaps to it.\n5. Observe that the blue window preview is drawn away from the host wall.\n\nThe likely cause is in [`ProductDecorator.get_generic_preview_data()`](https://github.com/IfcOpenShell/IfcOpenShell/blob/2b429dc605303154af3680a78241c0d617271fca/src/bonsai/bonsai/bim/module/model/decorator.py#L1532-L1600). The base-axis branch assigns the full wall world matrix:\n\n```python\nrot_mat = snap_obj.matrix_world\n```\n\nThe preview then applies both the snapped mouse translation and that matrix:\n\n```python\ncombined_m = translate_mouse @ rot_mat @ translate_rl @ self.obj_matrix_i\n```\n\nBecause `snap_obj.matrix_world` includes the wall translation, the translation is applied twice. The side-axis branch already builds a rotation-only matrix with `to_quaternion().to_matrix().to_4x4()`. Using a rotation-only wall matrix in the base-axis branch should keep the preview at the snapped point.\n\nRelated to #5551, where the occurrence preview was originally implemented.\n\n## Attachments\n\nNot attached because the original screenshot includes a private floor plan. This should be reproducible with a fresh wall placed away from the world origin.\n\n## Debug and Error Output\n\n```yes\nos: Darwin\nos_version: macOS Tahoe 26.5.2 (Darwin 25.5.0)\npython_version: 3.13.13\narchitecture: arm64\nmachine: arm64\nblender_version: 5.2.0 LTS\nbonsai_version: 0.8.6-alpha260819\nbonsai_commit_hash: 2b429dc\nbonsai_commit_date: 2026-08-19T20:07:52-03:00\nbonsai_git_branch: v0.8.0\nlast_error: None\n```\n","author":{"url":"https://github.com/PaulRBerg","@type":"Person","name":"PaulRBerg"},"datePublished":"2026-08-22T14:08:06Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9346"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c672963e-c849-8e3d-b525-9e1f8307303d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA972:32405D:2B8D05:3D0D59:6B04757E
html-safe-nonce6266817d904941e62ba2f3fee9811852930769210b236f15b9a56c9355bd3205
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTcyOjMyNDA1RDoyQjhEMDU6M0QwRDU5OjZCMDQ3NTdFIiwidmlzaXRvcl9pZCI6IjgzNTEwNzg2NTA1Nzc0NTAzNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace9f14819af8b20d15a71afb5a1563bfad6fb237844799c073cf5f70bddfd082c
hovercard-subject-tagissue:5222280241
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/9346/issue_layout
twitter:imagehttps://opengraph.githubassets.com/16c6b01234d3c769f964a426ec9370c2c5983b2e1a352af6a9e0d302b743dd94/IfcOpenShell/IfcOpenShell/issues/9346
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/16c6b01234d3c769f964a426ec9370c2c5983b2e1a352af6a9e0d302b743dd94/IfcOpenShell/IfcOpenShell/issues/9346
og:image:altBug Description The blue IfcWindow occurrence preview is displaced from a translated host wall even though the insertion point is snapped to that wall. Expected: the preview is drawn on the wall at...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePaulRBerg
hostnamegithub.com
expected-hostnamegithub.com
None9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecf73f57448d52b3a7b619195e182b33d3b3454ca
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/9346#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F9346
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F9346
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9346
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9346
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9346
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests937 (937)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9346
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9346
Bonsai: window preview is offset by the host wall's translationhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9346#top
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/PaulRBerg
PaulRBerghttps://github.com/PaulRBerg
on Aug 22, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9346#issue-5222280241
ProductDecorator.get_generic_preview_data()https://github.com/IfcOpenShell/IfcOpenShell/blob/2b429dc605303154af3680a78241c0d617271fca/src/bonsai/bonsai/bim/module/model/decorator.py#L1532-L1600
#5551https://github.com/IfcOpenShell/IfcOpenShell/issues/5551
petruconduraruhttps://github.com/petruconduraru
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Aug 31, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9346#event-30260232449
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Aug 31, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9346#issuecomment-5474466215
#9010https://github.com/IfcOpenShell/IfcOpenShell/pull/9010
#7659https://github.com/IfcOpenShell/IfcOpenShell/pull/7659
#9347https://github.com/IfcOpenShell/IfcOpenShell/issues/9347
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9346
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9346
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.