Title: Colors aren't all properly rendered · Issue #265 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Colors aren't all properly rendered · Issue #265 · IfcOpenShell/IfcOpenShell
X Title: Colors aren't all properly rendered · Issue #265 · IfcOpenShell/IfcOpenShell
Description: Hello, I've found a case where colors aren't all properly rendered although it seems not to be a specific case. To demonstrate this, let's consider the Schependomlaan model. You can find it on GitHub at https://github.com/openBIMstandard...
Open Graph Description: Hello, I've found a case where colors aren't all properly rendered although it seems not to be a specific case. To demonstrate this, let's consider the Schependomlaan model. You can find it on GitH...
X Description: Hello, I've found a case where colors aren't all properly rendered although it seems not to be a specific case. To demonstrate this, let's consider the Schependomlaan model. You can fin...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/265
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Colors aren't all properly rendered","articleBody":"Hello,\r\n\r\nI've found a case where colors aren't all properly rendered although it seems not to be a specific case.\r\n\r\nTo demonstrate this, let's consider the Schependomlaan model. You can find it on GitHub at [https://github.com/openBIMstandards/DataSetSchependomlaan](https://github.com/openBIMstandards/DataSetSchependomlaan) in the `Design model IFC` folder.\r\n\r\nAs you can see on the GitHub page (or directly in Solibri) the expected result looks like : \r\n\r\n\r\n\r\nHowever, what I've got using IfcConverter (with `APPLY_LAYERSETS` or not) looks like :\r\n\r\n\r\n\r\nI've done some investigation and found that IFCOS doesn't consider colors from materials not declared into a layer set. Here, representation items of most walls aren't associated with a style and so they can't be associated with a color by this way. The only other way I know IFCOS uses to associate color to elements is by material association. However, as I said before, IFCOS only considerers it possible through layer set.\r\n\r\nBasically, IFCOS is able to interpret these lines: \r\n\r\n```\r\n#2291=IFCMATERIAL('Brick');\r\n#2292=IFCMATERIALLAYER(#2291,360.,$);\r\n#2293=IFCMATERIALLAYERSET((#2292),'Wall');\r\n#2294=IFCMATERIALLAYERSETUSAGE(#2293,.AXIS2.,.POSITIVE.,-180.);\r\n#2295=IFCRELASSOCIATESMATERIAL('0eDzaK6d93t9658vnoDtFP',#5,$,$,(#35,#220,#293,#300),#2294);\r\n```\r\n\r\nbut not these:\r\n\r\n```\r\n#33032= IFCMATERIAL('03 mw-baksteen - bruin (liggend)');\r\n#655836= IFCRELASSOCIATESMATERIAL('2mCXec$NZJNBivhafKeW$a',#25,$,$,(\r\n#655832),#33032);\r\n```\r\n\r\nFYI the equivalent of what I've written above in terms of code lines is:\r\n\r\n```\r\nbool IfcGeom::Kernel::convert_layerset(const IfcSchema::IfcProduct* product, std::vector\u003cHandle_Geom_Surface>& surfaces, std::vector\u003cconst SurfaceStyle*>& styles, std::vector\u003cdouble>& thicknesses) {\r\n\tIfcSchema::IfcMaterialLayerSetUsage* usage = 0;\r\n\tHandle_Geom_Surface reference_surface;\r\n\r\n\tIfcSchema::IfcRelAssociates::list::ptr associations = product->HasAssociations();\r\n\tfor (IfcSchema::IfcRelAssociates::list::it it = associations->begin(); it != associations->end(); ++it) {\r\n\t\tIfcSchema::IfcRelAssociatesMaterial* associates_material = (**it).as\u003cIfcSchema::IfcRelAssociatesMaterial>();\r\n\t\tif (associates_material) {\r\n\t\t\tusage = associates_material->RelatingMaterial()->as\u003cIfcSchema::IfcMaterialLayerSetUsage>();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\tif (!usage) {\r\n\t\treturn false;\r\n\t}\r\n\r\n[....]\r\n```\r\n\r\nHere, a paradox is apparent with on one hand the name of the method and the other hand the cast you do to get the relating material which let suppose that other cases are possible.\r\n\r\nSo, why doesn't IFC consider a case like this one ? Haven't you seen something like this ? Am I missing something ?","author":{"url":"https://github.com/FragColor","@type":"Person","name":"FragColor"},"datePublished":"2017-09-29T10:18:38Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/265"}
| 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:3319310d-e4b8-3dc6-05ba-da894342e398 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8020:2E7DB9:318455:4276EB:6B049CB4 |
| html-safe-nonce | 4c0453db9eaca74fe4acb9c6f795eb3a623818821f4da7b5eb8474b8c4d34f30 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDIwOjJFN0RCOTozMTg0NTU6NDI3NkVCOjZCMDQ5Q0I0IiwidmlzaXRvcl9pZCI6IjIwNTQxNzc0MDA4NDUyNzgzODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6d377ca658c39bb3b996aeb19090596193c075296e678e12a6c47c853773c7f3 |
| hovercard-subject-tag | issue:261596685 |
| 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/265/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75b5a3d58d426b6c9cae616ceda2fa4d9702fdeaad03949de007c2370979a923/IfcOpenShell/IfcOpenShell/issues/265 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75b5a3d58d426b6c9cae616ceda2fa4d9702fdeaad03949de007c2370979a923/IfcOpenShell/IfcOpenShell/issues/265 |
| og:image:alt | Hello, I've found a case where colors aren't all properly rendered although it seems not to be a specific case. To demonstrate this, let's consider the Schependomlaan model. You can find it on GitH... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FragColor |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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