René's URL Explorer Experiment


Title: Bonsai: preserve flow direction when splicing a bend into a duct connection by petruconduraru · Pull Request #8733 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: preserve flow direction when splicing a bend into a duct connection by petruconduraru · Pull Request #8733 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: preserve flow direction when splicing a bend into a duct connection by petruconduraru · Pull Request #8733 · IfcOpenShell/IfcOpenShell

Description: Root cause MEPAddBend hardcoded direction="NOTDEFINED" for both new fitting<->segment port connections when splicing a bend into an existing connection between two duct segments. This unconditionally wiped any pre-existing SOURCE/SINK pairing the two segments had, matching the reported "flow is reset". Manually re-establishing the direction afterwards (one connection at a time, via the Ports panel) can easily leave the fitting's own two ports non-complementary (e.g. both effectively inconsistent relative to each other), since nothing ties the two independent per-connection assignments together, which is the reported "reversed in the fitting" symptom. Fix Instead of hardcoding NOTDEFINED, derive the direction for each new connection from the segments' pre-existing FlowDirection pairing via the already-existing direction_from_port_pair helper (the same helper used by split_mep_segment for an analogous "preserve flow across a splice" problem). Each new fitting port takes over the role the other segment used to play, so the fitting's two ports come out correctly complementary automatically, with no manual re-establishment needed. Verification Live, against the reporter's actual attached file: before the fix, splicing a bend into an established SOURCE/SINK pair reset both new fitting ports to NOTDEFINED. After the fix, segments keep their direction unchanged and the new fitting's two ports come out correctly complementary (one SINK, one SOURCE). Confirmed no regression for segments with no pre-existing flow direction (stays NOTDEFINED, byte-for-byte identical to old behavior), and confirmed the re-edit path (e.g. changing a bend's radius, which deletes and recreates the fitting) also preserves direction correctly. Added 3 regression tests against the reporter's actual fixture file, run through the real bim.mep_add_bend operator. Ran the full existing model/system test suites (570 tests): no regressions. Fixes #6278 Generated with the assistance of an AI coding tool.

Open Graph Description: Root cause MEPAddBend hardcoded direction="NOTDEFINED" for both new fitting<->segment port connections when splicing a bend into an existing connection between two duct segments. Th...

X Description: Root cause MEPAddBend hardcoded direction=&quot;NOTDEFINED&quot; for both new fitting&lt;-&gt;segment port connections when splicing a bend into an existing connection between two d...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8733

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bd9b1998-17e4-8291-aa5e-0cd593e5f589
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD15C:72378:2864FC:35F0F4:6B04B692
html-safe-nonce5345164cb2416cfc3f514bc91ef9463fda6563f94130bc4b7434442502c4c5ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTVDOjcyMzc4OjI4NjRGQzozNUYwRjQ6NkIwNEI2OTIiLCJ2aXNpdG9yX2lkIjoiNjY3MDk2NTY2NDMyNjY2MTc3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac97b366d358cde04f2ee06f0abf645d9355c2c2b38783e80f9a2ae2003ab66db1
hovercard-subject-tagpull_request:4082765064
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
twitter:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
og:image:altRoot cause MEPAddBend hardcoded direction="NOTDEFINED" for both new fitting<->segment port connections when splicing a bend into an existing connection between two duct segments. Th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb032e77f1ea437ede6c115446a0a467709b468e7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8733%2Ffiles
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%2Fpull%2F8733%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
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 requests940 (940)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
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
petruconduraruhttps://github.com/petruconduraru
IfcOpenShell:v0.9.0https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.9.0
BIMvoice:fix-6278-duct-bend-flow-directionhttps://github.com/BIMvoice/IfcOpenShell/tree/fix-6278-duct-bend-flow-direction
Conversation 0 https://github.com/IfcOpenShell/IfcOpenShell/pull/8733
Commits 3 https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
Bonsai: preserve flow direction when splicing a bend into a duct connection https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#top
Show all changes 3 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
ec6b560 Bonsai: preserve flow direction when splicing a bend into a duct conn… petruconduraru Jul 18, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/commits/ec6b560be5665a8f61cfcaaf342eb195aea466a4
1dc4e14 Merge origin/v0.9.0 into mig19/8733 petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/commits/1dc4e14cc4f269a344a85dbc4b09b8bc70e8cd4c
874e798 Bonsai: satisfy style checks on bend flow PR petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/commits/874e798be34860ce05e9345278de0cd791170f4f
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
mep.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
test_mep_add_bend_flow_direction.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-6e31ac328f022aaf4798086f5df2be10058af49f0793509cd41e3624095adf48
mep-duct-bend-flow-direction.ifc https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-890106f46795bf77e5527415427f568a86aa9b9e492220dc86ae2f36275adf04
src/bonsai/bonsai/bim/module/model/mep.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/874e798be34860ce05e9345278de0cd791170f4f/src/bonsai/bonsai/bim/module/model/mep.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
src/bonsai/test/bim/module/model/test_mep_add_bend_flow_direction.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files#diff-6e31ac328f022aaf4798086f5df2be10058af49f0793509cd41e3624095adf48
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/874e798be34860ce05e9345278de0cd791170f4f/src/bonsai/test/bim/module/model/test_mep_add_bend_flow_direction.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8733/{{ revealButtonHref }}
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8733/files
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.