Title: How to parse geometry with DISABLE_TRIANGULATION? · Issue #733 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: How to parse geometry with DISABLE_TRIANGULATION? · Issue #733 · IfcOpenShell/IfcOpenShell
X Title: How to parse geometry with DISABLE_TRIANGULATION? · Issue #733 · IfcOpenShell/IfcOpenShell
Description: As Blender supports ngons and quad meshes quite happily, I thought it would be nice to export an IFC from Blender and re-import it with the quads retained. Currently, geometry can be extracted like so: shape = ifcopenshell.geom.create_sh...
Open Graph Description: As Blender supports ngons and quad meshes quite happily, I thought it would be nice to export an IFC from Blender and re-import it with the quads retained. Currently, geometry can be extracted like...
X Description: As Blender supports ngons and quad meshes quite happily, I thought it would be nice to export an IFC from Blender and re-import it with the quads retained. Currently, geometry can be extracted like...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/733
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to parse geometry with DISABLE_TRIANGULATION?","articleBody":"As Blender supports ngons and quad meshes quite happily, I thought it would be nice to export an IFC from Blender and re-import it with the quads retained.\r\n\r\nCurrently, geometry can be extracted like so:\r\n\r\n```\r\nshape = ifcopenshell.geom.create_shape(self.settings, element)\r\nf = shape.geometry.faces\r\n```\r\n\r\nHowever, if I set:\r\n\r\n```\r\nself.settings.set(self.settings.USE_BREP_DATA, True)\r\nself.settings.set(self.settings.DISABLE_TRIANGULATION, True)\r\n```\r\n\r\nThen `shape.geometry.faces` no longer exists. I get `shape.geometry.brep_data`, which contains a plaintext serialisation which I assume I can parse (is there documentation for this plaintext syntax?), but seems a bit inefficient. Is there a better / easier approach to get untriangulated geometry? Ideally, I'd love to just continue using `shape.geometry.faces`.\r\n\r\n(Note: setting DISABLE_TRIANGULATION by itself doesn't seem to trigger any change, I think USE_BREP_DATA is needed to let PythonOCC kick in)","author":{"url":"https://github.com/Moult","@type":"Person","name":"Moult"},"datePublished":"2019-12-01T01:03:07Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/733"}
| 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:52438193-fac9-6921-53fd-b53e60f2f96e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6B2:20CE16:6558E:8C578:6B04AE98 |
| html-safe-nonce | 277f4c341d431839f5efb1c89bb5fb295e279a745876f77f945f5c0af79b2a27 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkIyOjIwQ0UxNjo2NTU4RTo4QzU3ODo2QjA0QUU5OCIsInZpc2l0b3JfaWQiOiIyMjY4ODk0MTE2MDMxMjc4NzQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a4d5b919cc1d215f05172c45d9bbda9c3164cfec138752e73ae2b00e1d01aabf |
| hovercard-subject-tag | issue:530651518 |
| 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/733/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89625afa3a5d47f3b98289e17c778581192eb9b60ffee56ca1bc2119ec932d3e/IfcOpenShell/IfcOpenShell/issues/733 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89625afa3a5d47f3b98289e17c778581192eb9b60ffee56ca1bc2119ec932d3e/IfcOpenShell/IfcOpenShell/issues/733 |
| og:image:alt | As Blender supports ngons and quad meshes quite happily, I thought it would be nice to export an IFC from Blender and re-import it with the quads retained. Currently, geometry can be extracted like... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Moult |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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