Comment 3 for bug 1112763

Revision history for this message
Jérôme Duriez (jduriez) wrote :

Hi

I'm attaching a new version of InsertionSortCollider that could solve this bug.

At least, it solves https://answers.launchpad.net/yade/+question/246392 (I have now 9 sphere-box interactions in any case !!!). I think that the problem was caused by the "wrap" of bound extents inside cells. I disabled this wrapping for big bodies, in case "allowBiggerThanPeriod"

Since it is a quite central piece of code, and because I did not get 100% of InsertionSortCollider, I do not commit it directly, to avoid stress to anyone. But, as I said, it solves my problem, so it might be useful.

(In the end, the detail of extent-threshold is still to be discussed, I used 0.99, as in l.500, but l.534 speaks about a "half" of the period.)

Jérôme