LDraw.org Discussion Forums
[MLCad] Collision detection - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: [MLCad] Collision detection (/thread-26644.html)



Collision detection - Manfred Schaefer - 2022-08-20

Hello,

how do you check if there is a collision in your model. I have not found anything in MLCad, LDCad I know too little,
Studio is sometimes too unreliable.

Greetings

Manfred


RE: Collision detection - Jaco van der Molen - 2022-08-25

(2022-08-20, 19:53)Manfred Schaefer Wrote: Hello,

how do you check if there is a collision in your model. I have not found anything in MLCad, LDCad I know too little,
Studio is sometimes too unreliable.

Greetings

Manfred

I believe LDInspector does a good job with this.
See https://forums.ldraw.org/thread-23882.html


RE: Collision detection - Stefan Frenz - 2022-08-31

(2022-08-20, 19:53)Manfred Schaefer Wrote: how do you check if there is a collision in your model. I have not found anything in MLCad, LDCad I know too little,
Studio is sometimes too unreliable.

If you would like to give LDInspector a chance or the integration of the same algorithm into LDCad 1.7-alpha2, I would be happy to hear about your results or assist if you need help getting a result. If you like LDInspector but dislike JavaFX, you can use the command line tool like so:
Code:
me:$ java ldinsp.tools.LDITFileCheckerCollision 603-1\ -\ Sidecar.mpd
error: contains colliding parts

part 3819.dat in line 68<-12 collides with part 973.dat in line 67<-12
part 3818.dat in line 69<-12 collides with part 973.dat in line 67<-12

found 2 collisions in 117ms