René's URL Explorer Experiment


Title: Bonsai: add MEP junction fitting operator (tee, wye, cross) by petruconduraru · Pull Request #8697 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: add MEP junction fitting operator (tee, wye, cross) by petruconduraru · Pull Request #8697 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: add MEP junction fitting operator (tee, wye, cross) by petruconduraru · Pull Request #8697 · IfcOpenShell/IfcOpenShell

Description: Part of #2181. FitFlowSegments (Shift+Y "Add Fitting") already detected TEE/CROSS/WYE topologies when 3+ segments were selected, but its dispatch ended in a literal print(fitting_type), a scaffold that was never wired up. bim.mep_connect_elements is strictly pairwise (2 elements, one IfcRelConnectsPorts, no fitting), so there was genuinely no junction-building path in the codebase. Adds MEPAddJunction (bim.mep_add_junction), following the existing MEPAddBend/MEPAddTransition construction pattern: given 3+ selected same-type segments whose axes meet at a common point (least-squares solve, 1mm tolerance), it trims/extends each segment to the junction, builds one fitting type with one extruded leg per segment (oriented by that segment's own frame), adds one port per leg, and connects every segment via IfcRelConnectsPorts. Cable carrier fittings use TEE/CROSS (their enum has no JUNCTION); everything else uses JUNCTION. FitFlowSegments now routes 3+ selections here; the 2-segment tee/cross cases now report "split first" guidance instead of silently doing nothing. Tested headless in Blender 5.2 across rectangular-duct T, 4-way cross, and 45-degree circular-pipe wye, in both metre and millimetre projects: correct port count/positions, correct segment trimming, IfcCableCarrierFitting/IfcPipeFitting predefined types resolve correctly, both error paths (segment running through the junction point, non-concurrent axes) cancel cleanly with no partial state, save/reload round-trips correctly, and ifcopenshell.validate reports 0 issues. Verified Moult's stated segment axis convention (width = local X, height = local Y, extrusion +Z, centered) still holds in current segment creation. Known limitations, left for follow-up: legs must share one segment type (no reducing junctions), each junction creates its own fresh fitting type rather than reusing a compatible existing one, a single shared leg length, and the MEP segment cardinal-point dropdown still allows an off-center pick that would misalign ports (not introduced by this change). This does not implement the issue's separate "Connector" operation, which remains open. Generated with the assistance of an AI coding tool.

Open Graph Description: Part of #2181. FitFlowSegments (Shift+Y "Add Fitting") already detected TEE/CROSS/WYE topologies when 3+ segments were selected, but its dispatch ended in a literal print(fitting_type), a...

X Description: Part of #2181. FitFlowSegments (Shift+Y "Add Fitting") already detected TEE/CROSS/WYE topologies when 3+ segments were selected, but its dispatch ended in a literal print(fitting_...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:7b0ca8c0-3fcf-fe14-b922-43f9a8e2efe8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD66C:9FD79:4DDE83:670E29:6B04DB0D
html-safe-nonce61c3c9f6e7744b74f6d59a5ce6fbf4a45c753d83321c7d3775d6268c2dac1d88
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjZDOjlGRDc5OjREREU4Mzo2NzBFMjk6NkIwNERCMEQiLCJ2aXNpdG9yX2lkIjoiNTYzNTg2NzAwNTQxMzU0Njc2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfa38bd4385466741d5d904a8323cd408913d7fb5892bc4ec01058b8b72fafb20
hovercard-subject-tagpull_request:4076014480
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/8697/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:altPart of #2181. FitFlowSegments (Shift+Y "Add Fitting") already detected TEE/CROSS/WYE topologies when 3+ segments were selected, but its dispatch ended in a literal print(fitting_type), a...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965
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
release6c35540a0a2991ee20bd053ba2601cce33f72cb1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8697%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%2F8697%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/8697/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/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 requests936 (936)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-2181-mep-junctionhttps://github.com/BIMvoice/IfcOpenShell/tree/fix-2181-mep-junction
Conversation 5 https://github.com/IfcOpenShell/IfcOpenShell/pull/8697
Commits 1 https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files
Bonsai: add MEP junction fitting operator (tee, wye, cross) https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#top
Show all changes 1 commit https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files
7ee619f Bonsai: add MEP junction fitting operator petruconduraru Jul 17, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/commits/7ee619f39dc9e37ec2351585c14508abcaa60a1a
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files
__init__.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-34c0df832b0ad444d904ebbbc676edeb0ddc35a1b445f968d981c4913370a4e1
mep.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
workspace.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-4ba34c61015aabe5c331ab9222cfbfd2f9c085224090f7bb6013f8cfe184d7de
test_mep_distribution_fit_smoke.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-414e930c11078131229ad2134c08dae972274995c5ba043cbf5c74b2058856c0
src/bonsai/bonsai/bim/module/model/__init__.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-34c0df832b0ad444d904ebbbc676edeb0ddc35a1b445f968d981c4913370a4e1
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/7ee619f39dc9e37ec2351585c14508abcaa60a1a/src/bonsai/bonsai/bim/module/model/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-34c0df832b0ad444d904ebbbc676edeb0ddc35a1b445f968d981c4913370a4e1
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-34c0df832b0ad444d904ebbbc676edeb0ddc35a1b445f968d981c4913370a4e1
src/bonsai/bonsai/bim/module/model/mep.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/7ee619f39dc9e37ec2351585c14508abcaa60a1a/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/8697/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-ceef5118c739cc3c163415e7a34d9090487fce72a1e47c29db5cf8b5de932c0f
src/bonsai/bonsai/bim/module/model/workspace.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-4ba34c61015aabe5c331ab9222cfbfd2f9c085224090f7bb6013f8cfe184d7de
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/7ee619f39dc9e37ec2351585c14508abcaa60a1a/src/bonsai/bonsai/bim/module/model/workspace.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-4ba34c61015aabe5c331ab9222cfbfd2f9c085224090f7bb6013f8cfe184d7de
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-4ba34c61015aabe5c331ab9222cfbfd2f9c085224090f7bb6013f8cfe184d7de
src/bonsai/test/bim/module/model/test_mep_distribution_fit_smoke.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-414e930c11078131229ad2134c08dae972274995c5ba043cbf5c74b2058856c0
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/7ee619f39dc9e37ec2351585c14508abcaa60a1a/src/bonsai/test/bim/module/model/test_mep_distribution_fit_smoke.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-414e930c11078131229ad2134c08dae972274995c5ba043cbf5c74b2058856c0
https://github.com/IfcOpenShell/IfcOpenShell/pull/8697/files#diff-414e930c11078131229ad2134c08dae972274995c5ba043cbf5c74b2058856c0
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8697/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.