Title: geom.app "wrong number or type of arguments" · Issue #1444 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: geom.app "wrong number or type of arguments" · Issue #1444 · IfcOpenShell/IfcOpenShell
X Title: geom.app "wrong number or type of arguments" · Issue #1444 · IfcOpenShell/IfcOpenShell
Description: I'm trying to use the IfcOpenShell.geom.app application example, but get frequent crashes. I'm running Python 3.9 on macOS Big Sur and compiled IfcOpenShell and PythonOCC from sources. OpenCASCADE is version 7.5.1 occ_utils.py Here I get...
Open Graph Description: I'm trying to use the IfcOpenShell.geom.app application example, but get frequent crashes. I'm running Python 3.9 on macOS Big Sur and compiled IfcOpenShell and PythonOCC from sources. OpenCASCADE ...
X Description: I'm trying to use the IfcOpenShell.geom.app application example, but get frequent crashes. I'm running Python 3.9 on macOS Big Sur and compiled IfcOpenShell and PythonOCC from sources. Open...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1444
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"geom.app \"wrong number or type of arguments\"","articleBody":"I'm trying to use the `IfcOpenShell.geom.app` application example, but get frequent crashes.\r\n\r\nI'm running `Python 3.9` on `macOS Big Sur` and compiled `IfcOpenShell` and `PythonOCC` from sources.\r\nOpenCASCADE is version 7.5.1\r\n\r\n## occ_utils.py\r\n\r\nHere I get the wrong number or type of arguments, when calling `V3d.V3d_DirectionalLight(viewer_handle)`\r\nWhen I replace it with `light = V3d.V3d_DirectionalLight(*dir)` and comment out the next line (`SetDirection`), I can at least launch the viewer.\r\n\r\n```python\r\n for dir in dirs:\r\n light = V3d.V3d_DirectionalLight(*dir) # viewer_handle)\r\n # light.SetDirection(*dir)\r\n viewer.SetLightOn(light.GetHandle() if USE_OCCT_HANDLE else light)\r\n```\r\n\r\n## running the viewer\r\n\r\nI use following minimal script to launch the viewer:\r\n\r\n```python\r\nfrom ifcopenshell.geom.app import application\r\na = application().start()\r\n```\r\n\r\nThis seems to work fairly OK, but whenever I click on one of the Types or try to pick an object, I get a crash when calling into `AIS_InteractiveContext_Select`.\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python3.9/site-packages/OCC/Display/qtDisplay.py\", line 210, in mouseReleaseEvent\r\n self._display.Select(pt.x(), pt.y())\r\n File \"/usr/local/lib/python3.9/site-packages/ifcopenshell/geom/app.py\", line 571, in HandleSelection\r\n v.Select()\r\n File \"/usr/local/lib/python3.9/site-packages/OCC/Core/AIS.py\", line 4932, in Select\r\n return _AIS.AIS_InteractiveContext_Select(self, *args)\r\nTypeError: Wrong number or type of arguments for overloaded function 'AIS_InteractiveContext_Select'.\r\n Possible C/C++ prototypes are:\r\n AIS_InteractiveContext::Select(Standard_Integer const,Standard_Integer const,Standard_Integer const,Standard_Integer const,opencascade::handle\u003c V3d_View > const &,Standard_Boolean const)\r\n AIS_InteractiveContext::Select(TColgp_Array1OfPnt2d const &,opencascade::handle\u003c V3d_View > const &,Standard_Boolean const)\r\n AIS_InteractiveContext::Select(Standard_Boolean const)\r\n```\r\n\r\nThis seems to be, again, a mismatch between the different libraries (PythonOCC, IfcOpenShell).\r\n","author":{"url":"https://github.com/stefkeB","@type":"Person","name":"stefkeB"},"datePublished":"2021-04-27T08:46:40Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1444"}
| 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:0a559412-ae83-d6e5-2f46-e991d74c0041 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B896:23BC15:6ECE6F:95231B:6B04AB02 |
| html-safe-nonce | 9cd25eaa28426c75f429ce3b5ba50feaead0adcaff8913425abde8c98fe20bc1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODk2OjIzQkMxNTo2RUNFNkY6OTUyMzFCOjZCMDRBQjAyIiwidmlzaXRvcl9pZCI6IjY0NTkxNzc3MzAyODk0Nzg0MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f21aa9754f7c3cdbbaf1986e6f2e39ad09e9b0e2629a3d5c3271f5d4b5730867 |
| hovercard-subject-tag | issue:868618256 |
| 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/1444/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eca39747baff5443c81587995f1d825d61f2ca0933f41329c79050abac714a07/IfcOpenShell/IfcOpenShell/issues/1444 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eca39747baff5443c81587995f1d825d61f2ca0933f41329c79050abac714a07/IfcOpenShell/IfcOpenShell/issues/1444 |
| og:image:alt | I'm trying to use the IfcOpenShell.geom.app application example, but get frequent crashes. I'm running Python 3.9 on macOS Big Sur and compiled IfcOpenShell and PythonOCC from sources. OpenCASCADE ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stefkeB |
| 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