Title: Make geometry export more efficient by separating position and normal indices · Issue #46 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Make geometry export more efficient by separating position and normal indices · Issue #46 · IfcOpenShell/IfcOpenShell
X Title: Make geometry export more efficient by separating position and normal indices · Issue #46 · IfcOpenShell/IfcOpenShell
Description: As of now, an index in IfcGeom::Representation::Triangulation refers to a unique {vertex, normal}-pair, as this is the standard for all OpenGL-based rendering. However, file formats such as OBJ and Collada have separate indexing streams....
Open Graph Description: As of now, an index in IfcGeom::Representation::Triangulation refers to a unique {vertex, normal}-pair, as this is the standard for all OpenGL-based rendering. However, file formats such as OBJ and...
X Description: As of now, an index in IfcGeom::Representation::Triangulation refers to a unique {vertex, normal}-pair, as this is the standard for all OpenGL-based rendering. However, file formats such as OBJ and...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/46
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make geometry export more efficient by separating position and normal indices","articleBody":"As of now, an index in `IfcGeom::Representation::Triangulation` refers to a unique {vertex, normal}-pair, as this is the standard for all OpenGL-based rendering. However, file formats such as OBJ and Collada have separate indexing streams. Maintaining index-pairs results in repeated pairs of indices and more vertices and normals emitted than necessary (especially note the many repeated identical normals):\n\n```\n \u003csource id=\"representation-2978545-positions\">\n \u003cfloat_array id=\"representation-2978545-positions-array\" count=\"1548\">0.718 0.015 2.5 0.718 0.015 2.936 0.718 0 2.5 0.718 0 2.936 0.718 0 2.5 ...\u003c/float_array>\n \u003ctechnique_common>\n \u003caccessor source=\"#representation-2978545-positions-array\" count=\"516\" stride=\"3\">\n \u003cparam name=\"X\" type=\"float\"/>\n \u003cparam name=\"Y\" type=\"float\"/>\n \u003cparam name=\"Z\" type=\"float\"/>\n \u003c/accessor>\n \u003c/technique_common>\n \u003c/source>\n \u003csource id=\"representation-2978545-normals\">\n \u003cfloat_array id=\"representation-2978545-normals-array\" count=\"1548\">1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 ...\u003c/float_array>\n \u003ctechnique_common>\n \u003caccessor source=\"#representation-2978545-normals-array\" count=\"516\" stride=\"3\">\n \u003cparam name=\"X\" type=\"float\"/>\n \u003cparam name=\"Y\" type=\"float\"/>\n \u003cparam name=\"Z\" type=\"float\"/>\n \u003c/accessor>\n \u003c/technique_common>\n \u003c/source>\n \u003cvertices id=\"representation-2978545-vertices\">\n \u003cinput semantic=\"POSITION\" source=\"#representation-2978545-positions\"/>\n \u003c/vertices>\n \u003ctriangles material=\"IfcWindow\" count=\"172\">\n \u003cinput semantic=\"VERTEX\" source=\"#representation-2978545-vertices\" offset=\"0\"/>\n \u003cinput semantic=\"NORMAL\" source=\"#representation-2978545-normals\" offset=\"1\"/>\n \u003cp>0 0 1 1 2 2 5 5 3 3 4 4 8 8 6 6 ...\u003c/p>\n \u003c/triangles>\n```\n","author":{"url":"https://github.com/aothms","@type":"Person","name":"aothms"},"datePublished":"2016-03-15T11:17:50Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/46"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5f1e7d00-628a-d3ae-b1e7-81837a66adee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F60:5B8C0:237078:31B801:6B0473AB |
| html-safe-nonce | 76cf4c39f2f871404cf76d34696b9d5c5f8e3b129f7f254aed9cf0475620a6bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjYwOjVCOEMwOjIzNzA3ODozMUI4MDE6NkIwNDczQUIiLCJ2aXNpdG9yX2lkIjoiMTc2MjUxMDMwMzUzMjQ0NjYzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a0b4ab6959cf1f492d8c54af999b27fcd7ec74ac9fdaca5b561a16067ca579ef |
| hovercard-subject-tag | issue:140941699 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b13b03fdd6c2cc069896e8b40a2be71c1ec857bc6898322a004f03e97fcd1e5/IfcOpenShell/IfcOpenShell/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b13b03fdd6c2cc069896e8b40a2be71c1ec857bc6898322a004f03e97fcd1e5/IfcOpenShell/IfcOpenShell/issues/46 |
| og:image:alt | As of now, an index in IfcGeom::Representation::Triangulation refers to a unique {vertex, normal}-pair, as this is the standard for all OpenGL-based rendering. However, file formats such as OBJ and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aothms |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width