Closed manuel-koch closed 9 months ago
@manuel-koch this is interesting! I can't put my finger on it. Looks like two faces are parallel, but that shouldn't be a big problem at that distance. I will need to take a closer look on the C side. Have you tried to pass these inputs to the C demo?
@MattiaMontanari No, I've not tested the data with the C implementation.
@manuel-koch the C implementation shows Distance between bodies 0.767918
.
I'd suggest to:
SINGLE_PRECISION
flag)If the above don't fix the error, please add a test in examples/cython/test.py
with your coords and expected results to be 0.767918
. I will take it from there to find the error - which may be a conversion error from double
to whatever cython uses
@MattiaMontanari Thank you for the feedback. I already found some other python package to find collisions between meshes that fits my use case: distance3d
The following code returns distance
nan
for two distinct not colliding rather simple objects. When running equivalent python code within a pytest suite, I can see the following output on captured console too ( but this is not printed in the snippet posted here ) :MAXIMUM ITERATION NUMBER REACHED!
The scene looks like the following screenshots ( two perspectives of same scene ):
My environment is MacOS Ventura 13.3.1 (22E261) arm64, Python 3.10.6, cpython build of openGJK ( master, commit 47df2d7 )