René's URL Explorer Experiment


Title: geometry.add_representation: keep loose edges (curves) when a mesh also has faces (#4593) by petruconduraru · Pull Request #8345 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: geometry.add_representation: keep loose edges (curves) when a mesh also has faces (#4593) by petruconduraru · Pull Request #8345 · IfcOpenShell/IfcOpenShell

X Title: geometry.add_representation: keep loose edges (curves) when a mesh also has faces (#4593) by petruconduraru · Pull Request #8345 · IfcOpenShell/IfcOpenShell

Description: Fixes #4593. geometry.add_representation dropped a mesh's loose edges whenever the mesh also had faces: create_annotation2d/3d_representation emitted only the polygons as IfcAnnotationFillArea. A custom 2D drawing mixing polygons and curves therefore lost all its curves and reverted to the default on the next mode switch (Andrej730's 2024 diagnosis). This emits the loose edges as an IfcGeometricCurveSet alongside the fill areas, reusing create_curves_from_mesh / _ifc2x3 with should_exclude_faces. It also fixes the face-edge collection (set.union, a no-op, → set.update, which is what made should_exclude_faces dead) and guards against emitting an empty trailing edge loop. Verified in IFC4 and IFC2X3: a mesh of one quad face + one loose edge now writes ['IfcAnnotationFillArea', 'IfcGeometricCurveSet'] with the loose curve being exactly the loose edge (no face edges); the curves survive a write/reload; faces-only and curves-only meshes are unchanged. (Counterpart to the read-side fix in #4606.) Generated with the assistance of an AI coding tool.

Open Graph Description: Fixes #4593. geometry.add_representation dropped a mesh's loose edges whenever the mesh also had faces: create_annotation2d/3d_representation emitted only the polygons as IfcAnnotationFillArea....

X Description: Fixes #4593. geometry.add_representation dropped a mesh's loose edges whenever the mesh also had faces: create_annotation2d/3d_representation emitted only the polygons as IfcAnnotationFillA...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.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:32bb906c-28c2-848e-3dc2-511384d495d2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAEC6:31E3E4:27FB44:356AE6:6B04B6A2
html-safe-nonceb6dc6ac6a942f254d9693450e785d38cbb190e85bdc0872d9a176ce57702f957
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUM2OjMxRTNFNDoyN0ZCNDQ6MzU2QUU2OjZCMDRCNkEyIiwidmlzaXRvcl9pZCI6IjY4MjQxOTg0NzUyNjY0Mzg4MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac69a821c7a43a4ae8f3f3e734a9f1941f0f7d74945e640f9b78ade07efa86b8d7
hovercard-subject-tagpull_request:4005885847
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/8345/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:altFixes #4593. geometry.add_representation dropped a mesh's loose edges whenever the mesh also had faces: create_annotation2d/3d_representation emitted only the polygons as IfcAnnotationFillArea....
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/8345/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8345%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%2F8345%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/8345/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8345/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-4593-add-repr-loose-edgeshttps://github.com/BIMvoice/IfcOpenShell/tree/fix-4593-add-repr-loose-edges
Conversation 1 https://github.com/IfcOpenShell/IfcOpenShell/pull/8345
Commits 4 https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/commits
Checks 8 https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files
geometry.add_representation: keep loose edges (curves) when a mesh also has faces (#4593) https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#top
Show all changes 4 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files
9bc7c3e Bonsai: keep loose edges when a 2D representation also has faces petruconduraru Jul 7, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/commits/9bc7c3e835162057f3cae0dd08c14248433d3659
945d436 Merge origin/v0.9.0 into PR 8345 petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/commits/945d43696c266ddea0771c3b5d0689ac183569a9
7a39f97 Bonsai: keep loose edges next to annotation faces petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/commits/7a39f97f30c95b41198a96fc25a5e2a3f06c6c50
88136ab Merge v0.9.0: keep loose-edge curves with add_representation without … theoryshaw Oct 11, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/commits/88136abc82616c3a81c4a7a6942a89d94f1b9400
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files
test_geometry_annotation_loose_edges.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-f271fb665be5f9ba8c8ab79d6485f681529958703e88b4cc92e6decbaf1e0a29
add_representation.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
src/bonsai/test/tool/test_geometry_annotation_loose_edges.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-f271fb665be5f9ba8c8ab79d6485f681529958703e88b4cc92e6decbaf1e0a29
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/88136abc82616c3a81c4a7a6942a89d94f1b9400/src/bonsai/test/tool/test_geometry_annotation_loose_edges.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/{{ revealButtonHref }}
src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/88136abc82616c3a81c4a7a6942a89d94f1b9400/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
https://github.com/IfcOpenShell/IfcOpenShell/pull/8345/files#diff-49b084e4794e5cc60701cd488fae67185a637ddc82cad293520a4f9e8b958380
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8345/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.