Title: ifcjs - fail to load project without TrueNorth / assigned units (Memory access out of bounds) · Issue #5646 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: ifcjs - fail to load project without TrueNorth / assigned units (Memory access out of bounds) · Issue #5646 · IfcOpenShell/IfcOpenShell
X Title: ifcjs - fail to load project without TrueNorth / assigned units (Memory access out of bounds) · Issue #5646 · IfcOpenShell/IfcOpenShell
Description: Hello! I am creating a simple house using ifcopenshell-python. Below is a part of my script. Everything is okay in OpenIFCViewer but I can not load the IFC in IFCLoader or online ifc viewers. The problem is when I have 4 walls I can load...
Open Graph Description: Hello! I am creating a simple house using ifcopenshell-python. Below is a part of my script. Everything is okay in OpenIFCViewer but I can not load the IFC in IFCLoader or online ifc viewers. The p...
X Description: Hello! I am creating a simple house using ifcopenshell-python. Below is a part of my script. Everything is okay in OpenIFCViewer but I can not load the IFC in IFCLoader or online ifc viewers. The p...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5646
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ifcjs - fail to load project without TrueNorth / assigned units (Memory access out of bounds)","articleBody":"Hello!\r\nI am creating a simple house using ifcopenshell-python. Below is a part of my script. Everything is okay in OpenIFCViewer but I can not load the IFC in IFCLoader or online ifc viewers. The problem is when I have 4 walls I can load IFC in IFCLoader but when I add just one more element, either wall or door or window etc, then I get memory access out of bounds and when I remove that 5th element everything is fine again. Am I missing something?\r\n\r\n```python\r\ndef create_ifc_wall(model, body, wall_info, wall_point_left, wall_point_right, storey, wall_id):\r\n wall = ifcopenshell.api.root.create_entity(model, ifc_class=\"IfcWall\" , name=str(wall_id))\r\n representation_wall = ifcopenshell.api.geometry.create_2pt_wall(model, element=wall, context=body, p1=(wall_point_left[0], wall_point_left[1]), p2=(wall_point_right[0], wall_point_right[1]), elevation=0, height=float(wall_info[0]), thickness=0.02)\r\n ifcopenshell.api.geometry.assign_representation(model, product=wall, representation=representation_wall)\r\n ifcopenshell.api.spatial.assign_container(model, products=[wall], relating_structure=storey) \r\n\r\nproject = ifcopenshell.api.root.create_entity(model, ifc_class=\"IfcProject\")\r\nsite = ifcopenshell.api.root.create_entity(model, ifc_class=\"IfcSite\")\r\nbuilding = ifcopenshell.api.root.create_entity(model, ifc_class=\"IfcBuilding\")\r\nstorey = ifcopenshell.api.root.create_entity(model, ifc_class=\"IfcBuildingStorey\")\r\ncontext = ifcopenshell.api.context.add_context(model, context_type=\"Model\")\r\nbody = ifcopenshell.api.context.add_context(model, context_type=\"Model\",\r\n context_identifier=\"Body\", target_view=\"MODEL_VIEW\", parent=context)\r\n\r\nifcopenshell.api.aggregate.assign_object(model, products=[site], relating_object=project)\r\nifcopenshell.api.aggregate.assign_object(model, products=[building], relating_object=site)\r\nifcopenshell.api.aggregate.assign_object(model, products=[storey], relating_object=building)\r\n\r\n# Create walls\r\nfor wall in data['walls']:\r\n wall_info = [wall['height'], wall['width']]\r\n create_ifc_wall(model, body, wall_info, wall['leftmost_point'], wall['rightmost_point'], storey, wall['id'])\r\n```","author":{"url":"https://github.com/monemati","@type":"Person","name":"monemati"},"datePublished":"2024-10-28T08:54:31Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5646"}
| 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:4563a6e6-f3fa-568b-a7a1-6ff6625f523d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E3A:E08F0:5D7D21:83C399:6B0477FD |
| html-safe-nonce | b9fc9f1114dbf928cc322b7654304ba9c9b84168599bb5510e7d21f6bcf2e5a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTNBOkUwOEYwOjVEN0QyMTo4M0MzOTk6NkIwNDc3RkQiLCJ2aXNpdG9yX2lkIjoiMzE0Njk1MDYzNDYxMjEyMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a554ff122f635ea3803eeccd18e992a6b80fc3fe5bbe74bf427863b7a9388a21 |
| hovercard-subject-tag | issue:2617736328 |
| 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/5646/issue_layout |
| twitter:image | https://opengraph.githubassets.com/65797edcc24d74ef1c08a057634d1edcf8ba4601449e3fad695e473a1f51fdd6/IfcOpenShell/IfcOpenShell/issues/5646 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/65797edcc24d74ef1c08a057634d1edcf8ba4601449e3fad695e473a1f51fdd6/IfcOpenShell/IfcOpenShell/issues/5646 |
| og:image:alt | Hello! I am creating a simple house using ifcopenshell-python. Below is a part of my script. Everything is okay in OpenIFCViewer but I can not load the IFC in IFCLoader or online ifc viewers. The p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | monemati |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| 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