Title: util.shape.get_shape_bottom_elevation weird values on IFC4X1 · Issue #6895 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: util.shape.get_shape_bottom_elevation weird values on IFC4X1 · Issue #6895 · IfcOpenShell/IfcOpenShell
X Title: util.shape.get_shape_bottom_elevation weird values on IFC4X1 · Issue #6895 · IfcOpenShell/IfcOpenShell
Description: Bug Description The values returning are extremely large and identical, rather than showing the correct heights. When I run the script on IFC2X3 models I get the right numbers, but on IFC4X1 models I end up with these strange, oversized ...
Open Graph Description: Bug Description The values returning are extremely large and identical, rather than showing the correct heights. When I run the script on IFC2X3 models I get the right numbers, but on IFC4X1 models...
X Description: Bug Description The values returning are extremely large and identical, rather than showing the correct heights. When I run the script on IFC2X3 models I get the right numbers, but on IFC4X1 models...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6895
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"util.shape.get_shape_bottom_elevation weird values on IFC4X1","articleBody":"### Bug Description\n\nThe values returning are extremely large and identical, rather than showing the correct heights. When I run the script on IFC2X3 models I get the right numbers, but on IFC4X1 models I end up with these strange, oversized values.\n\nExample from IFC2X3: 12635\nExample from IFC4X1: -20000000000000000318057822195198360936721617127890562779562655115495677544340762121626939971713630208.000\n\n[H2521_nieuw.ifc.txt](https://github.com/user-attachments/files/21170276/H2521_nieuw.ifc.txt)\n\n`import ifcopenshell.util as util\nimport ifcopenshell.geom\nfrom ifcopenshell.util import element, shape\n\nmodellen = [r\"C:\\Users\\pahlawan\\Downloads\\Nieuwe map (4)\\H2521_nieuw.ifc\"]\nsettings = ifcopenshell.geom.settings()\n\nfor mdl in modellen:\n\n model = ifcopenshell.open(mdl)\n elements = []\n for etype in (\"IfcWindow\", \"IfcDoor\"):\n for elem in model.by_type(etype):\n elements.append(elem)\n\n for obj in elements:\n shape_obj = ifcopenshell.geom.create_shape(settings, obj)\n hoogte = ifcopenshell.util.shape.get_shape_bottom_elevation(shape_obj, shape_obj.geometry)\n hoogte_meters = round(hoogte, 3)\n hoogte_mm = int(hoogte_meters * 1000)\n print(hoogte_mm)`\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/PahlawanJoey","@type":"Person","name":"PahlawanJoey"},"datePublished":"2025-07-10T20:00:07Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6895"}
| 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:e6677b0d-3719-f986-2784-b90a8fcba713 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2AC:613C2:31489E:44E66C:6B047750 |
| html-safe-nonce | 90a94bc5e543925a0fe34a20846fa48cf88e6e1a4805ef3cbd02442611d968a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkFDOjYxM0MyOjMxNDg5RTo0NEU2NkM6NkIwNDc3NTAiLCJ2aXNpdG9yX2lkIjoiNjAyMzA3ODI1NzI3MTAxMTE1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5ce7e8d60af6ae5dea744e6df4690bf3f0b442d9f3ec120b065f546a19859506 |
| hovercard-subject-tag | issue:3220528564 |
| 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/6895/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d87e75bfd74f980f8414e0c0123ea70af49658a9a917b3c59120507c2b2381b6/IfcOpenShell/IfcOpenShell/issues/6895 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d87e75bfd74f980f8414e0c0123ea70af49658a9a917b3c59120507c2b2381b6/IfcOpenShell/IfcOpenShell/issues/6895 |
| og:image:alt | Bug Description The values returning are extremely large and identical, rather than showing the correct heights. When I run the script on IFC2X3 models I get the right numbers, but on IFC4X1 models... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PahlawanJoey |
| 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