Title: Bonsai - Tuple index out of range when editing a beam with half space solid cut. · Issue #7939 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai - Tuple index out of range when editing a beam with half space solid cut. · Issue #7939 · IfcOpenShell/IfcOpenShell
X Title: Bonsai - Tuple index out of range when editing a beam with half space solid cut. · Issue #7939 · IfcOpenShell/IfcOpenShell
Description: Bug Description screencast: https://github.com/user-attachments/assets/da7c050c-4998-4748-8b93-d01b58ff3113 Bug appears when pressing tab to exit edit mode after half space proxy creation and rotation. Here is the error: os: Windows os_v...
Open Graph Description: Bug Description screencast: https://github.com/user-attachments/assets/da7c050c-4998-4748-8b93-d01b58ff3113 Bug appears when pressing tab to exit edit mode after half space proxy creation and rotat...
X Description: Bug Description screencast: https://github.com/user-attachments/assets/da7c050c-4998-4748-8b93-d01b58ff3113 Bug appears when pressing tab to exit edit mode after half space proxy creation and rotat...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7939
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai - Tuple index out of range when editing a beam with half space solid cut.","articleBody":"### Bug Description\n\nscreencast: https://github.com/user-attachments/assets/da7c050c-4998-4748-8b93-d01b58ff3113\nBug appears when pressing tab to exit edit mode after half space proxy creation and rotation.\nHere is the error:\n````\nos: Windows\nos_version: 10.0.26200\npython_version: 3.13.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: AMD64 Family 25 Model 116 Stepping 1, AuthenticAMD\nblender_version: 5.1.0\nbonsai_version: 0.8.6-alpha260414\nbonsai_commit_hash: 9246be7\nbonsai_commit_date: 2026-04-14T20:01:21+05:00\nbonsai_git_branch: v0.8.0\nlast_actions: \n# operator: BIM_OT_import_representation_items\n# operator: BIM_OT_add_half_space_solid_item\n# operator: BIM_OT_add_boolean\n# ifcopenshell.api: geometry.add_boolean\n>>> {}\n# ifcopenshell.api: pset.add_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 69, \"Name\": \"Beam\"}, \"name\": \"BBIM_Boolean\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.assign_pset\n>>> {}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.edit_pset\n>>> {\"pset\": {\"cast_type\": \"entity_instance\", \"value\": 100, \"Name\": \"BBIM_Boolean\"}, \"properties\": \"{'Data': IfcText('[99]')}\"}\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\n# ifcopenshell.api: geometry.validate_type\n>>> {}\n# ifcopenshell.api: geometry.add_boolean\n>>> {}\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_import_representation_items\n# operator: BIM_OT_override_mode_set_edit\n# operator: BIM_OT_override_mode_set_edit\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\ifc.py\", line 525, in execute_ifc_operator\n result = getattr(operator, \"_invoke\")(context, event)\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 2244, in _invoke\n return self.execute(context)\n ~~~~~~~~~~~~^^^^^^^^^\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\tool\\ifc.py\", line 367, in execute\n IfcStore.execute_ifc_operator(self, context)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\ifc.py\", line 523, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 2275, in _execute\n self.handle_multiple_selected_objects(context)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 2315, in handle_multiple_selected_objects\n self.handle_single_object(context, obj)\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 2307, in handle_single_object\n self.enable_editing_representation_item(context, obj)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 2354, in enable_editing_representation_item\n tool.Geometry.sync_item_positions()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\tool\\geometry.py\", line 1798, in sync_item_positions\n cls.reload_representation(rep_obj)\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\tool\\geometry.py\", line 1327, in reload_representation\n representation = tool.Geometry.resolve_mapped_representation(representation)\n File \"C:\\Users\\cp\\AppData\\Roaming\\Blender Foundation\\Blender\\5.1\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\tool\\geometry.py\", line 1213, in resolve_mapped_representation\n return cls.resolve_mapped_representation(representation.Items[0].MappingSource.MappedRepresentation)\n ~~~~~~~~~~~~~~~~~~~~^^^\nIndexError: tuple index out of range\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: No IFC loaded\nifc_is_dirty: N/A\nifc: Unsaved\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.6-alpha260414\noriginating_system: IfcOpenShell 0.8.6-alpha260414\n````\n\nIt looks like that if I open an ifc file with a beam that have an half space plane cut, the representation is corrupted.\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/carlopav","@type":"Person","name":"carlopav"},"datePublished":"2026-04-15T21:29:18Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7939"}
| 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:721065b7-675a-2b28-c7ca-bf27ad51a6a8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF68:199A13:91126A:CA1795:6B04816A |
| html-safe-nonce | b8691ab89758f43245a260800a2ecf82218aac10090825c14d82a42d4005253a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjY4OjE5OUExMzo5MTEyNkE6Q0ExNzk1OjZCMDQ4MTZBIiwidmlzaXRvcl9pZCI6IjgyODM0MzE2MTMyNjk2MTAwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 773bd62b8dff33c273800d00344875e224a5cf2e59bd741aab6422a073f8bfc9 |
| hovercard-subject-tag | issue:4271812953 |
| 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/7939/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc65513db12269f5d47dd0b3ea305c6dbd88ac03c2ffb53f7d1f23fc6061043c/IfcOpenShell/IfcOpenShell/issues/7939 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc65513db12269f5d47dd0b3ea305c6dbd88ac03c2ffb53f7d1f23fc6061043c/IfcOpenShell/IfcOpenShell/issues/7939 |
| og:image:alt | Bug Description screencast: https://github.com/user-attachments/assets/da7c050c-4998-4748-8b93-d01b58ff3113 Bug appears when pressing tab to exit edit mode after half space proxy creation and rotat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | carlopav |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| ui-target | canary-1 |
| 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