René's URL Explorer Experiment


Title: Need to understand how INCLUDE CURVES works · Issue #1290 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Need to understand how INCLUDE CURVES works · Issue #1290 · IfcOpenShell/IfcOpenShell

X Title: Need to understand how INCLUDE CURVES works · Issue #1290 · IfcOpenShell/IfcOpenShell

Description: I'm a little confused by the behaviour of INCLUDE_CURVES and hope that maybe once I understand it I can implement in a consistent manner how 2D objects are loaded into the scene. Below are all the scenarios I can think of. A few things w...

Open Graph Description: I'm a little confused by the behaviour of INCLUDE_CURVES and hope that maybe once I understand it I can implement in a consistent manner how 2D objects are loaded into the scene. Below are all the ...

X Description: I'm a little confused by the behaviour of INCLUDE_CURVES and hope that maybe once I understand it I can implement in a consistent manner how 2D objects are loaded into the scene. Below are all ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need to understand how INCLUDE CURVES works","articleBody":"I'm a little confused by the behaviour of INCLUDE_CURVES and hope that maybe once I understand it I can implement in a consistent manner how 2D objects are loaded into the scene.\r\n\r\nBelow are all the scenarios I can think of. A few things which I'm confused by:\r\n\r\n 1. Isn't it extra work for the iterator to process it twice in Scenario A? Shouldn't it pick one and stick to it?\r\n 2. In Scenario B how does it decide which representation to process? What if there were more than one 2D representation?\r\n 3. I guess scenario C has a similar priority but for non 2D shapes?\r\n\r\nIn the past, I generally disabled INCLUDE_CURVES by default because I noticed some elements that had 3D bodies would be processed as 2D curves instead. But this was a long time ago and maybe I wasn't using the iterator, or maybe there is something I haven't discovered yet with the iterator (is the order in which it processes it twice consistent?). I guess what I'm saying is that I'd love to enable it by default so that annotations always appear (#1142) but I need to be a bit more confident that it won't bork 3D representations so I guess I'm asking is there something I haven't considered?\r\n\r\n```\r\nimport ifcopenshell\r\nimport ifcopenshell.geom\r\n\r\nf = ifcopenshell.open(\"/home/dion/Downloads/JudgesReception.ifc\")\r\nelement = f.by_id(653)\r\nbody_3d = f.by_id(644)\r\naxis_2d = f.by_id(633)\r\n\r\n# *****************************************************************************\r\n\r\n# INCLUDE_CURVES = True\r\n# Method: Geometry iterator\r\n# Element: Has 3D body + 2D axis\r\n# Result: First 2D axis is created, then 3D body is created\r\n\r\nprint(\"Scenario A\")\r\nsettings = ifcopenshell.geom.settings()\r\nsettings.set(settings.INCLUDE_CURVES, True)\r\niterator = ifcopenshell.geom.iterator(settings, f, include=[element])\r\niterator.initialize()\r\nwhile True:\r\n    shape = iterator.get()\r\n    print(shape.guid)\r\n    print(shape.geometry.edges)\r\n    print(shape.geometry.faces)\r\n    if not iterator.next():\r\n        break\r\n\r\n# *****************************************************************************\r\n\r\n# INCLUDE_CURVES = True\r\n# Method: Create shape on element\r\n# Element: Has 3D body + 2D axis\r\n# Result: Only 2D axis is created\r\n\r\nprint(\"Scenario B\")\r\nsettings = ifcopenshell.geom.settings()\r\nsettings.set(settings.INCLUDE_CURVES, True)\r\nshape = ifcopenshell.geom.create_shape(settings, element)\r\nprint(shape.guid)\r\nprint(shape.geometry.edges)\r\nprint(shape.geometry.faces)\r\n\r\n# *****************************************************************************\r\n\r\n# INCLUDE_CURVES = False\r\n# Method: Create shape on element\r\n# Element: Has 3D body + 2D axis\r\n# Result: 3D body is created\r\n\r\nprint(\"Scenario C\")\r\nsettings = ifcopenshell.geom.settings()\r\nshape = ifcopenshell.geom.create_shape(settings, element)\r\nprint(shape.guid)\r\nprint(shape.geometry.edges)\r\nprint(shape.geometry.faces)\r\n\r\n# *****************************************************************************\r\n\r\n# INCLUDE_CURVES = False\r\n# Method: Create shape on 3D body\r\n# Result: 3D body is created\r\n\r\nprint(\"Scenario D\")\r\nsettings = ifcopenshell.geom.settings()\r\nshape = ifcopenshell.geom.create_shape(settings, body_3d)\r\nprint(shape.edges)\r\nprint(shape.faces)\r\n\r\n# *****************************************************************************\r\n\r\n# INCLUDE_CURVES = False\r\n# Method: Create shape on 2D axis\r\n# Result: Fail\r\n\r\nprint(\"Scenario E\")\r\nsettings = ifcopenshell.geom.settings()\r\ntry:\r\n    shape = ifcopenshell.geom.create_shape(settings, axis_2d)\r\nexcept:\r\n    print(\"Fail\")\r\n\r\n# *****************************************************************************\r\n\r\n# INCLUDE_CURVES = True\r\n# Method: Create shape on 3D body\r\n# Result: 3D body is created\r\n\r\nprint(\"Scenario F\")\r\nsettings = ifcopenshell.geom.settings()\r\nsettings.set(settings.INCLUDE_CURVES, True)\r\nshape = ifcopenshell.geom.create_shape(settings, body_3d)\r\nprint(shape.edges)\r\nprint(shape.faces)\r\n\r\n\r\n# *****************************************************************************\r\n\r\n# INCLUDE_CURVES = True\r\n# Method: Create shape on 2D axis\r\n# Result: 2D axis is created\r\n\r\nprint(\"Scenario G\")\r\nsettings = ifcopenshell.geom.settings()\r\nsettings.set(settings.INCLUDE_CURVES, True)\r\nshape = ifcopenshell.geom.create_shape(settings, axis_2d)\r\nprint(shape.edges)\r\nprint(shape.faces)\r\n```","author":{"url":"https://github.com/Moult","@type":"Person","name":"Moult"},"datePublished":"2021-02-03T00:59:49Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1290"}

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:090f6ccc-3d10-e49b-32ae-624a7bc94209
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD54A:237AAE:7691AF:A1AEB3:6B0479EA
html-safe-nonced8288e078518f796ef7cc2b8be2add73e301b122525bf3fd8e148982f105ff65
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTRBOjIzN0FBRTo3NjkxQUY6QTFBRUIzOjZCMDQ3OUVBIiwidmlzaXRvcl9pZCI6IjEwNTgxMTI5NDY2MTE0NTIzOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdae04d6d92492a2eaf2a322a8552562b1dfdd92cc6d4aab9e5d56bffac83e865
hovercard-subject-tagissue:799855318
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/1290/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8308df89a7f116217e52fe9a5575006c6d1765535e36bb60cf514882089cd976/IfcOpenShell/IfcOpenShell/issues/1290
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8308df89a7f116217e52fe9a5575006c6d1765535e36bb60cf514882089cd976/IfcOpenShell/IfcOpenShell/issues/1290
og:image:altI'm a little confused by the behaviour of INCLUDE_CURVES and hope that maybe once I understand it I can implement in a consistent manner how 2D objects are loaded into the scene. Below are all the ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMoult
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/1290#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F1290
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%2F1290
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/1290
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1290
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1290
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/1290
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1290
Need to understand how INCLUDE CURVES workshttps://github.com/IfcOpenShell/IfcOpenShell/issues/1290#top
https://github.com/Moult
Moulthttps://github.com/Moult
on Feb 3, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#issue-799855318
#1142https://github.com/IfcOpenShell/IfcOpenShell/issues/1142
https://github.com/Moult
Moulthttps://github.com/Moult
on Feb 3, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#issuecomment-772231450
#1142https://github.com/IfcOpenShell/IfcOpenShell/issues/1142
https://github.com/aothms
aothmshttps://github.com/aothms
on Feb 3, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#issuecomment-772385999
https://github.com/Moult
Moulthttps://github.com/Moult
on Mar 11, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#issuecomment-797128397
https://github.com/Moult
Moulthttps://github.com/Moult
on Mar 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#issuecomment-798869188
door-include-curves.ifc.txthttps://github.com/IfcOpenShell/IfcOpenShell/files/6136287/door-include-curves.ifc.txt
Moulthttps://github.com/Moult
on Mar 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#event-4455016438
Fix bug on Windows where sometimes, the body representation wouldn't …https://github.com/IfcOpenShell/IfcOpenShell/commit/a1e34b0acb2bc3d7daa340be8ef28b25e28a6a51
a1e34b0https://github.com/IfcOpenShell/IfcOpenShell/commit/a1e34b0acb2bc3d7daa340be8ef28b25e28a6a51
https://github.com/plaes
plaeshttps://github.com/plaes
on Mar 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#issuecomment-798874866
aothmshttps://github.com/aothms
on Mar 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#event-4455053481
#1290 Consider dimensionality in geometricset processinghttps://github.com/IfcOpenShell/IfcOpenShell/commit/f80792091f2f898915312bdfc745390c8c5f6618
#1290https://github.com/IfcOpenShell/IfcOpenShell/issues/1290
f807920https://github.com/IfcOpenShell/IfcOpenShell/commit/f80792091f2f898915312bdfc745390c8c5f6618
https://github.com/aothms
aothmshttps://github.com/aothms
on Mar 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#issuecomment-798875416
45f3e67https://github.com/IfcOpenShell/IfcOpenShell/commit/45f3e677dfc3a78566b994d068aa1183442526ef
@plaeshttps://github.com/plaes
https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/test/tests.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/test/tests.py
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#issuecomment-924797736
Moulthttps://github.com/Moult
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1290#event-5342165213
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1290
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1290
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.