Title: geom.occ_utils.initialize display · Issue #2500 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: geom.occ_utils.initialize display · Issue #2500 · IfcOpenShell/IfcOpenShell
X Title: geom.occ_utils.initialize display · Issue #2500 · IfcOpenShell/IfcOpenShell
Description: Dear all, I was trying to use "geom.occ_utils.initialize display" module, with very basic features: pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display() shape = ifcopenshell.geom.occ_utils.display_shape(ifc_file2.by_type("IfcW...
Open Graph Description: Dear all, I was trying to use "geom.occ_utils.initialize display" module, with very basic features: pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display() shape = ifcopenshell.geom.occ_uti...
X Description: Dear all, I was trying to use "geom.occ_utils.initialize display" module, with very basic features: pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display() shape = ifcopenshell.ge...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/2500
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"geom.occ_utils.initialize display","articleBody":"Dear all, I was trying to use \"geom.occ_utils.initialize display\" module, with very basic features: \r\n`pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display()`\r\n`shape = ifcopenshell.geom.occ_utils.display_shape(ifc_file2.by_type(\"IfcWall\")[0])`\r\n\r\nI get an error bringing me in the 97 of the code of the module itself: \r\n\r\nFile \"c:/Users/mlaur/Desktop/newcode/test.py\", line 155, in \u003cmodule>\r\n pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display()\r\n File \"C:\\Users\\mlaur\\anaconda3\\envs\\pyoccenv\\lib\\site-packages\\ifcopenshell\\geom\\occ_utils.py\", line 97, in initialize_display\r\n setup()\r\n File \"C:\\Users\\mlaur\\anaconda3\\envs\\pyoccenv\\lib\\site-packages\\ifcopenshell\\geom\\occ_utils.py\", line 93, in setup\r\n light = V3d.V3d_DirectionalLight(viewer_handle)\r\n File \"C:\\Users\\mlaur\\anaconda3\\envs\\pyoccenv\\lib\\site-packages\\OCC\\Core\\V3d.py\", line 5380, in __init__\r\n _V3d.V3d_DirectionalLight_swiginit(self, _V3d.new_V3d_DirectionalLight(*args))\r\nTypeError: Wrong number or type of arguments for overloaded function 'new_V3d_DirectionalLight'.\r\n Possible C/C++ prototypes are:\r\n V3d_DirectionalLight::V3d_DirectionalLight(V3d_TypeOfOrientation const,Quantity_Color const &,Standard_Boolean const)\r\n V3d_DirectionalLight::V3d_DirectionalLight(gp_Dir const &,Quantity_Color const &,Standard_Boolean const)\r\n\r\nTKOpenGl.WinSystem | Type: Error | ID: 6 | Severity: High | Message:\r\n wglMakeCurrent() has failed. The handle is invalid.\r\n\r\nCould you please tell me how to fix it? thanks","author":{"url":"https://github.com/mlaura1996","@type":"Person","name":"mlaura1996"},"datePublished":"2022-10-14T08:54:24Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/2500"}
| 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:cb414b3c-51db-7d10-3f0d-1dc13c424191 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E292:11F88D:22EB5:312AE:6B04A98F |
| html-safe-nonce | ca1545ca994ce2b757ea2b10ac37897d1436e824c3273efb7b327f0cef404fbc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjkyOjExRjg4RDoyMkVCNTozMTJBRTo2QjA0QTk4RiIsInZpc2l0b3JfaWQiOiI5MTI3Njk0Mjc5NTM3MjM3OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 823c9e035e85e112be71071dd558677637a6a8d1b2638ec2f11135417d2f9717 |
| hovercard-subject-tag | issue:1409009117 |
| 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/2500/issue_layout |
| twitter:image | https://opengraph.githubassets.com/289410c837112e823bb058f73e5d0b3672bdc2d7e449fda1d1541e8da87a50ff/IfcOpenShell/IfcOpenShell/issues/2500 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/289410c837112e823bb058f73e5d0b3672bdc2d7e449fda1d1541e8da87a50ff/IfcOpenShell/IfcOpenShell/issues/2500 |
| og:image:alt | Dear all, I was trying to use "geom.occ_utils.initialize display" module, with very basic features: pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display() shape = ifcopenshell.geom.occ_uti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mlaura1996 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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