Title: Undetected clash of walls, clash_intersection_many · Issue #4594 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Undetected clash of walls, clash_intersection_many · Issue #4594 · IfcOpenShell/IfcOpenShell
X Title: Undetected clash of walls, clash_intersection_many · Issue #4594 · IfcOpenShell/IfcOpenShell
Description: If two walls intersect, but are otherwise perfectly centered to each other, clash_intersection_many fails to detect the clash. In the example below (STEP-file), two walls overlap with 50mm, yet no clash is detected. The walls lie on the ...
Open Graph Description: If two walls intersect, but are otherwise perfectly centered to each other, clash_intersection_many fails to detect the clash. In the example below (STEP-file), two walls overlap with 50mm, yet no ...
X Description: If two walls intersect, but are otherwise perfectly centered to each other, clash_intersection_many fails to detect the clash. In the example below (STEP-file), two walls overlap with 50mm, yet no ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/4594
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Undetected clash of walls, clash_intersection_many","articleBody":"If two walls intersect, but are otherwise perfectly centered to each other, `clash_intersection_many` fails to detect the clash.\r\n\r\nIn the example below ([STEP-file](#example-1)), two walls overlap with 50mm, yet ___no clash is detected___. The walls lie on the same axis, hence their section faces meet perfectly (in this case the x-axis).\r\n\r\nHowever, if the second wall is moved by just 2mm along either the y-axis or z-axis, the ___clash is detected___ .\r\n\r\nThe issue is not limited to walls on the same axis. If two walls meet in a 90 degree corner, but one wall extends too far, no clash is detected. Again, moving by a tiny amount in a direction perpendicular to the axis in which the wall extends too far, solves the issue ([pictures attached below](#example-2)).\r\n\r\nI have conducted similar tests with intersecting slabs. In this case, two intersecting slabs in the XY-plane doesn't cause a clash unless one is moved along the z-axis.\r\n\r\nOddly enough, if two beams (extruded with `IfcIShapeProfileDef`) in success of each other on the same axis overlap, no slight offset is required for successful detection of clash.\r\n\r\nI'm using `ifcopenshell==v0.7.0-f7c03db75`.\r\n\r\n```python\r\ntree = ifcopenshell.geom.tree()\r\nsettings = ifcopenshell.geom.settings()\r\niterator = ifcopenshell.geom.iterator(settings, model, multiprocessing.cpu_count())\r\nif iterator.initialize():\r\n while True:\r\n tree.add_element(iterator.get())\r\n\r\n if not iterator.next():\r\n break\r\n\r\nelements = model.by_type(\"IfcBuildingElement\")\r\ngroup_a_elements = elements\r\ngroup_b_elements = elements\r\n\r\nclashes = tree.clash_intersection_many(\r\n group_a_elements,\r\n group_b_elements,\r\n tolerance=0.002,\r\n check_all=True,\r\n)\r\n```\r\n\r\n## Example 1\r\n\r\nMinimal STEP to reproduce:\r\n```\r\nISO-10303-21;\r\nHEADER;\r\nFILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1');\r\nFILE_NAME('clash_wall_issue.ifc','2024-04-29T19:03:24+02:00',(),(),'IfcOpenShell v0.7.0-f7c03db75','BlenderBIM 0.0.240428-9962a0c','Nobody');\r\nFILE_SCHEMA(('IFC4'));\r\nENDSEC;\r\nDATA;\r\n#1=IFCPROJECT('0vqv4q$Fv95PrM0zrlF1yT',$,'My Project',$,$,$,$,(#14,#26),#9);\r\n#2=IFCSIUNIT(*,.LENGTHUNIT.,.MILLI.,.METRE.);\r\n#3=IFCSIUNIT(*,.AREAUNIT.,$,.SQUARE_METRE.);\r\n#4=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.);\r\n#5=IFCDIMENSIONALEXPONENTS(0,0,0,0,0,0,0);\r\n#6=IFCSIUNIT(*,.PLANEANGLEUNIT.,$,.RADIAN.);\r\n#7=IFCMEASUREWITHUNIT(IFCREAL(0.0174532925199433),#6);\r\n#8=IFCCONVERSIONBASEDUNIT(#5,.PLANEANGLEUNIT.,'degree',#7);\r\n#9=IFCUNITASSIGNMENT((#8,#3,#4,#2));\r\n#10=IFCCARTESIANPOINT((0.,0.,0.));\r\n#11=IFCDIRECTION((0.,0.,1.));\r\n#12=IFCDIRECTION((1.,0.,0.));\r\n#13=IFCAXIS2PLACEMENT3D(#10,#11,#12);\r\n#14=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.E-05,#13,$);\r\n#15=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Model',*,*,*,*,#14,$,.MODEL_VIEW.,$);\r\n#16=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Axis','Model',*,*,*,*,#14,$,.GRAPH_VIEW.,$);\r\n#17=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Box','Model',*,*,*,*,#14,$,.MODEL_VIEW.,$);\r\n#18=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#14,$,.SECTION_VIEW.,$);\r\n#19=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#14,$,.ELEVATION_VIEW.,$);\r\n#20=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#14,$,.MODEL_VIEW.,$);\r\n#21=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#14,$,.PLAN_VIEW.,$);\r\n#22=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Profile','Model',*,*,*,*,#14,$,.ELEVATION_VIEW.,$);\r\n#23=IFCCARTESIANPOINT((0.,0.));\r\n#24=IFCDIRECTION((1.,0.));\r\n#25=IFCAXIS2PLACEMENT2D(#23,#24);\r\n#26=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Plan',2,1.E-05,#25,$);\r\n#27=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Axis','Plan',*,*,*,*,#26,$,.GRAPH_VIEW.,$);\r\n#28=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Plan',*,*,*,*,#26,$,.PLAN_VIEW.,$);\r\n#29=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Plan',*,*,*,*,#26,$,.PLAN_VIEW.,$);\r\n#30=IFCSITE('225J4Zkmj39QIL5uFUh0cH',$,'My Site',$,$,#53,$,$,$,$,$,$,$,$);\r\n#36=IFCBUILDING('3FaZUNCcH88PMnVKT51H_L',$,'My Building',$,$,#59,$,$,$,$,$,$);\r\n#42=IFCBUILDINGSTOREY('0RfRuJu090ff6I2_CHTQHk',$,'My Storey',$,$,#65,$,$,$,$);\r\n#48=IFCRELAGGREGATES('1aMm9yDEDATAt8Tpxvl$eS',$,$,$,#1,(#30));\r\n#49=IFCCARTESIANPOINT((0.,0.,0.));\r\n#50=IFCDIRECTION((0.,0.,1.));\r\n#51=IFCDIRECTION((1.,0.,0.));\r\n#52=IFCAXIS2PLACEMENT3D(#49,#50,#51);\r\n#53=IFCLOCALPLACEMENT($,#52);\r\n#54=IFCRELAGGREGATES('1SuyTD5vTFYetF8ej3UQri',$,$,$,#30,(#36));\r\n#55=IFCCARTESIANPOINT((0.,0.,0.));\r\n#56=IFCDIRECTION((0.,0.,1.));\r\n#57=IFCDIRECTION((1.,0.,0.));\r\n#58=IFCAXIS2PLACEMENT3D(#55,#56,#57);\r\n#59=IFCLOCALPLACEMENT(#53,#58);\r\n#60=IFCRELAGGREGATES('1kAjW9iGv5ifFGn7xvPsLt',$,$,$,#36,(#42));\r\n#61=IFCCARTESIANPOINT((0.,0.,0.));\r\n#62=IFCDIRECTION((0.,0.,1.));\r\n#63=IFCDIRECTION((1.,0.,0.));\r\n#64=IFCAXIS2PLACEMENT3D(#61,#62,#63);\r\n#65=IFCLOCALPLACEMENT(#59,#64);\r\n#66=IFCWALLTYPE('3Gs2lvnlj09PJHD2Pb14jC',$,'TYPEX',$,$,(#71),$,$,$,.SOLIDWALL.);\r\n#67=IFCMATERIAL('Unknown',$,$);\r\n#68=IFCMATERIALLAYERSET((#70),$,$);\r\n#69=IFCRELASSOCIATESMATERIAL('11M2JejfP2oQB58043Xc3Q',$,$,$,(#66),#68);\r\n#70=IFCMATERIALLAYER(#67,100.,$,$,$,$,$);\r\n#71=IFCPROPERTYSET('3vf$SlgfLEP8WzY23hmHVh',$,'EPset_Parametric',$,(#72));\r\n#72=IFCPROPERTYSINGLEVALUE('LayerSetDirection',$,IFCLABEL('AXIS2'),$);\r\n#73=IFCWALL('1g0kyFNyzEHu1lehaNdV8a',$,'Wall',$,$,#86,#81,$,$);\r\n#74=IFCRELCONTAINEDINSPATIALSTRUCTURE('1LAS_j5rvDCeedCmcJWcrp',$,$,$,(#73,#100),#42);\r\n#75=IFCRELDEFINESBYTYPE('1$3C8fIq9BXRq7_1NovrcB',$,$,$,(#73,#100),#66);\r\n#76=IFCMATERIALLAYERSETUSAGE(#68,.AXIS2.,.POSITIVE.,0.,$);\r\n#77=IFCRELASSOCIATESMATERIAL('1DkvlQhij9IvLdJCZ$N8yy',$,$,$,(#73),#76);\r\n#78=IFCCARTESIANPOINTLIST2D(((0.,0.),(1000.,0.)));\r\n#79=IFCINDEXEDPOLYCURVE(#78,$,.F.);\r\n#80=IFCSHAPEREPRESENTATION(#27,'Axis','Curve2D',(#79));\r\n#81=IFCPRODUCTDEFINITIONSHAPE($,$,(#80,#96));\r\n#82=IFCCARTESIANPOINT((0.,0.,0.));\r\n#83=IFCDIRECTION((0.,0.,1.));\r\n#84=IFCDIRECTION((1.,0.,0.));\r\n#85=IFCAXIS2PLACEMENT3D(#82,#83,#84);\r\n#86=IFCLOCALPLACEMENT(#65,#85);\r\n#87=IFCCARTESIANPOINTLIST2D(((0.,0.),(0.,100.),(1000.,100.),(1000.,0.),(0.,0.)));\r\n#88=IFCINDEXEDPOLYCURVE(#87,$,.F.);\r\n#89=IFCDIRECTION((0.,0.,1.));\r\n#90=IFCARBITRARYCLOSEDPROFILEDEF(.AREA.,$,#88);\r\n#91=IFCCARTESIANPOINT((0.,0.,0.));\r\n#92=IFCDIRECTION((0.,0.,1.));\r\n#93=IFCDIRECTION((1.,0.,0.));\r\n#94=IFCAXIS2PLACEMENT3D(#91,#92,#93);\r\n#95=IFCEXTRUDEDAREASOLID(#90,#94,#89,3000.);\r\n#96=IFCSHAPEREPRESENTATION(#15,'Body','SweptSolid',(#95));\r\n#97=IFCPROPERTYSET('1XDvWT8Hj05fTxpjgtnU7m',$,'EPset_Parametric',$,(#99));\r\n#98=IFCRELDEFINESBYPROPERTIES('2xsxiMBJ5EpvjgxLAhNIky',$,$,$,(#73),#97);\r\n#99=IFCPROPERTYSINGLEVALUE('Engine',$,IFCLABEL('BlenderBIM.DumbLayer2'),$);\r\n#100=IFCWALL('1IR3c9T958oQ2vYzu8NzoH',$,'Wall',$,$,#144,#106,$,$);\r\n#101=IFCMATERIALLAYERSETUSAGE(#68,.AXIS2.,.POSITIVE.,0.,$);\r\n#102=IFCRELASSOCIATESMATERIAL('06BrDkgYPAAQsNtV8EjoRx',$,$,$,(#100),#101);\r\n#103=IFCCARTESIANPOINTLIST2D(((0.,0.),(1000.,0.)));\r\n#104=IFCINDEXEDPOLYCURVE(#103,$,.F.);\r\n#105=IFCSHAPEREPRESENTATION(#27,'Axis','Curve2D',(#104));\r\n#106=IFCPRODUCTDEFINITIONSHAPE($,$,(#105,#121));\r\n#112=IFCCARTESIANPOINTLIST2D(((0.,0.),(0.,100.),(1000.,100.),(1000.,0.),(0.,0.)));\r\n#113=IFCINDEXEDPOLYCURVE(#112,$,.F.);\r\n#114=IFCDIRECTION((0.,0.,1.));\r\n#115=IFCARBITRARYCLOSEDPROFILEDEF(.AREA.,$,#113);\r\n#116=IFCCARTESIANPOINT((0.,0.,0.));\r\n#117=IFCDIRECTION((0.,0.,1.));\r\n#118=IFCDIRECTION((1.,0.,0.));\r\n#119=IFCAXIS2PLACEMENT3D(#116,#117,#118);\r\n#120=IFCEXTRUDEDAREASOLID(#115,#119,#114,3000.);\r\n#121=IFCSHAPEREPRESENTATION(#15,'Body','SweptSolid',(#120));\r\n#122=IFCPROPERTYSET('1PtC6sXGD58xNAC4aYLErU',$,'EPset_Parametric',$,(#124));\r\n#123=IFCRELDEFINESBYPROPERTIES('2sfZ_i91P4SungdZ29OUw_',$,$,$,(#100),#122);\r\n#124=IFCPROPERTYSINGLEVALUE('Engine',$,IFCLABEL('BlenderBIM.DumbLayer2'),$);\r\n#140=IFCCARTESIANPOINT((950.000047683716,0.,0.));\r\n#141=IFCDIRECTION((0.,0.,1.));\r\n#142=IFCDIRECTION((1.,0.,0.));\r\n#143=IFCAXIS2PLACEMENT3D(#140,#141,#142);\r\n#144=IFCLOCALPLACEMENT(#65,#143);\r\nENDSEC;\r\nEND-ISO-10303-21;\r\n\r\n```\r\n\r\n## Example 2\r\n\r\nClash is not detected:\r\n\r\n\r\nClash is detected:\r\n\r\n\r\n","author":{"url":"https://github.com/KaareH","@type":"Person","name":"KaareH"},"datePublished":"2024-04-29T18:05:02Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/4594"}
| 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:47d01f80-0003-2843-3186-6efe1922066a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DADE:18CB59:62B4B:87989:6B04AED1 |
| html-safe-nonce | 74f9c634e7038e5e0151be282c662b7fa48e3a82efadf9660bd01c0f837d9a25 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQURFOjE4Q0I1OTo2MkI0Qjo4Nzk4OTo2QjA0QUVEMSIsInZpc2l0b3JfaWQiOiIyMzgzMjI5MDQ0NTUzNzIzNjAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 990da5177b496a916dfa6b11a53a63f0008274af74ab243a2b653797335f1c8a |
| hovercard-subject-tag | issue:2269641765 |
| 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/4594/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17174b4dd7a5ce6b756dde6b082124236fbaa1b72e5631ef9fed65772daaed06/IfcOpenShell/IfcOpenShell/issues/4594 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17174b4dd7a5ce6b756dde6b082124236fbaa1b72e5631ef9fed65772daaed06/IfcOpenShell/IfcOpenShell/issues/4594 |
| og:image:alt | If two walls intersect, but are otherwise perfectly centered to each other, clash_intersection_many fails to detect the clash. In the example below (STEP-file), two walls overlap with 50mm, yet no ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KaareH |
| 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