René's URL Explorer Experiment


Title: append_asset doesn't convert plane angles between library and project units · Issue #10183 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: append_asset doesn't convert plane angles between library and project units · Issue #10183 · IfcOpenShell/IfcOpenShell

X Title: append_asset doesn't convert plane angles between library and project units · Issue #10183 · IfcOpenShell/IfcOpenShell

Description: ifcopenshell.api.project.append_asset converts lengths when the library and the project use different length units, but copies plane angles unchanged. An asset whose geometry has an angle, such as an IfcRevolvedAreaSolid, comes out wrong...

Open Graph Description: ifcopenshell.api.project.append_asset converts lengths when the library and the project use different length units, but copies plane angles unchanged. An asset whose geometry has an angle, such as ...

X Description: ifcopenshell.api.project.append_asset converts lengths when the library and the project use different length units, but copies plane angles unchanged. An asset whose geometry has an angle, such as ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"append_asset doesn't convert plane angles between library and project units","articleBody":"`ifcopenshell.api.project.append_asset` converts lengths when the library and the project use different length units, but copies plane angles unchanged. An asset whose geometry has an angle, such as an `IfcRevolvedAreaSolid`, comes out wrong when the library and the project use different angle units.\n\n**Example.** A library in radians (or with no plane angle unit, so radians by default) has a revolved solid with `Angle = 2π`, a full turn. Appended into a project in degrees, `Angle` stays `6.283…`, which the project reads as 6.28°. The shade appears as a thin sliver, with every geometry library. Going the other way, a 360° library angle becomes 360 radians in a radian project.\n\n```python\nimport math\nimport ifcopenshell, ifcopenshell.api.project, ifcopenshell.api.root, ifcopenshell.api.unit\nimport ifcopenshell.api.context, ifcopenshell.api.geometry\nfrom ifcopenshell.util.shape_builder import ShapeBuilder\n\nlibrary = ifcopenshell.api.project.create_file()\nifcopenshell.api.root.create_entity(library, ifc_class=\"IfcProject\")  # no angle unit: radians\nwall = ifcopenshell.api.root.create_entity(library, ifc_class=\"IfcWall\")\nbuilder = ShapeBuilder(library)\ncontext = ifcopenshell.api.context.add_context(library, context_type=\"Model\")\nprofile = builder.profile(builder.rectangle((1, 1), position=(1, 0)))\nsolid = library.createIfcRevolvedAreaSolid(\n    profile, library.createIfcAxis2Placement3D(library.createIfcCartesianPoint((0.0, 0.0, 0.0))),\n    library.createIfcAxis1Placement(library.createIfcCartesianPoint((0.0, 0.0, 0.0))), 2 * math.pi)\nifcopenshell.api.geometry.assign_representation(library, wall, builder.get_representation(context, solid))\n\nproject = ifcopenshell.api.project.create_file()\nifcopenshell.api.root.create_entity(project, ifc_class=\"IfcProject\")\nifcopenshell.api.unit.assign_unit(project, units=[ifcopenshell.api.unit.add_conversion_based_unit(project, name=\"degree\")])\nifcopenshell.api.project.append_asset(project, library=library, element=wall)\nprint(project.by_type(\"IfcRevolvedAreaSolid\")[0].Angle)  # 6.283..., expected 360.0\n```\n\n**Expected:** angles are converted by the ratio of the two files' plane angle unit scales (`calculate_unit_scale(f, \"PLANEANGLEUNIT\")`), in the same way lengths are converted.\n\n**Notes:**\n- Only attributes *declared* as plane angles should be converted, such as `IfcRevolvedAreaSolid.Angle` or a profile's flange slope. An `IfcPlaneAngleMeasure` used as a property value can carry its own `Unit` (for example a beam angle in degrees), so converting it would be wrong.\n- Not covered here: trimming parameters of conics (`IfcTrimmedCurve` with an `IfcParameterValue`, which are angles in the project's units), and the `assume_asset_uniqueness_by_name=False` path, which goes through `file.add`.\n- I came across this appending a revolved light fixture from an asset library in radians into a project in feet and degrees.\n\nI have a fix with tests and can open a PR.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-11-09T17:48:56Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10183"}

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:8feab1b8-7399-286d-350a-e22840c34145
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B96:B89B3:BCF27:10D028:6B046382
html-safe-nonceb72f77b9462c2abfaaf62f8f261b2bd31d880225b26c21258972487092446985
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjk2OkI4OUIzOkJDRjI3OjEwRDAyODo2QjA0NjM4MiIsInZpc2l0b3JfaWQiOiI2OTU3MTg5MDA1NTM1MDc3MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace91e9987b34d8d1885b98a2da21a3b5fa0c225a8d1ddb685373d0bf805258946
hovercard-subject-tagissue:6291534069
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/10183/issue_layout
twitter:imagehttps://opengraph.githubassets.com/761ce7734b29b47f09c966ae86ba25662b9b78eaee070944d70ee4f41b329fda/IfcOpenShell/IfcOpenShell/issues/10183
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/761ce7734b29b47f09c966ae86ba25662b9b78eaee070944d70ee4f41b329fda/IfcOpenShell/IfcOpenShell/issues/10183
og:image:altifcopenshell.api.project.append_asset converts lengths when the library and the project use different length units, but copies plane angles unchanged. An asset whose geometry has an angle, such as ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametheoryshaw
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
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
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/10183#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F10183
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%2F10183
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/10183
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10183
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10183
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
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10183
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10183
#10184https://github.com/IfcOpenShell/IfcOpenShell/pull/10184
append_asset doesn't convert plane angles between library and project unitshttps://github.com/IfcOpenShell/IfcOpenShell/issues/10183#top
#10184https://github.com/IfcOpenShell/IfcOpenShell/pull/10184
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
https://github.com/theoryshaw
theoryshawhttps://github.com/theoryshaw
on Nov 9, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10183#issue-6291534069
theoryshawhttps://github.com/theoryshaw
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
on Nov 9, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10183#event-35597447569
3adoshkahttps://github.com/3adoshka
on Nov 20, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10183#event-36721387072
fix(project): convert plane angle units in append_asset (IfcOpenShell…https://github.com/3adoshka/IfcOpenShell/commit/994131e6b9cc68bbb1fab588fadbcde79797971e
IfcOpenShell…https://github.com/IfcOpenShell/IfcOpenShell/issues/10183
994131ehttps://github.com/3adoshka/IfcOpenShell/commit/994131e6b9cc68bbb1fab588fadbcde79797971e
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10183
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10183
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%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.