RE: Idea for an LDCad script
2022-01-09, 21:36 (This post was last modified: 2022-01-09, 21:39 by Stefan Frenz. Edit Reason: clarified wording, removed empty lines )
2022-01-09, 21:36 (This post was last modified: 2022-01-09, 21:39 by Stefan Frenz. Edit Reason: clarified wording, removed empty lines )
(2022-01-09, 20:05)Roland Melkert Wrote: Maybe 'fake seam shrinking' the parts before testing resolves some of those false positives?
Thank you for this hint!
I was not aware of this thread and have to work through its background.I tried so many approaches to shrink parts because in LDInspector version 0.5 collisions of coplanar triangles are all filtered out. Example:
Screenshot2.png (Size: 10.8 KB / Downloads: 138)
If the parts are not perfectly aligned or moved by small steps, the current algorithm will detect the collision. But perfectly aligned in a static model (which should be some normal case in my understanding) they collide in reality, but they don't have (non-coplanar) triangle intersection, so the current implementation will not detect the collision. Shrinking would be a solution in some cases, but I could not find a general solution to the problem illustrated here: two non-colliding parts (green) do collide after shrinking (red, in this example both parts are shrinked by 5% at an unlucky part origin):
Hmmmmm. Another thing on my ToDo-list.