Closed paulkry closed 4 years ago
I did the changes in this commit. The changes shown something weird though. When you remove a single body from a collection (a stack for example) without cutting a collection in different pieces, it creates a new collection... while I think it shouldn't. I'm having a hard time following the code. I guess it can wait until Monday. We will see that with Otman.
I think the standard thing is that the collection(s) resulting from an unmerge are all rebuilt from scratch.
I suspect this issue can be closed.
The only other issue might be to choose colours different from those that are adjacent in the contact graph?? This is really just a cosmetic thing. Perhaps there are other simple and beautiful ways to highlight merged collections?
Colours work pretty good now... Could probably work on the viz forever, but what this converged to is certainly good enough!
I'd like to see a version of merged body colourings that uses random hues. I'm not sure if it matters so much if the colours randomly change on merging and unmerging... but if we cared to try to make some temporal consistency, then a merge could always preserve the colour of the larger collection, and same for unmerging.