Closed GuillaumeLeGoc closed 9 months ago
Thanks a lot for this detailed description @GuillaumeLeGoc - It may well help to figure out the deeper problem :crossed_fingers: I'll have a look.
You're very welcome. Let me know if I can help.
Hey, Just wanted to confirm that the fix #296 works for me 😄
Describe the bug PointsDensity does not display the density at the right place.
To Reproduce Add non-symmetrical cells to a scene, then display the density with PointsDensity. The density mesh is off.
Expected behaviour Density is shown at the proper place, that is, where the cells are.
Screenshots With my data :
With the provided cell_density example :
Computer used (please complete the following information):
Additional context Hey, First I wanted to congratulate you for the mega-fix patch which looked like a pain but you manage and it seems to work (mostly). I freshly installed it in a new environment with Python 3.11 and it installed without complaining. But it seems that the weird/black-magic/ununderstood bug in the coordinates with vedo's PointsDensity is still here (although better than before). I added cells to a scene (allen_mouse_10um) and a density with the following :
Cells are displayed properly but the density seems to be mirrored in the left/right direction (see first screenshot above).
Then I tried the provided cell_density.py example, and that one seemed to work. But I noticed that randomly-generated cells are symmetrical, so I tried removing cells from one side :
Again, the density is off, it seems mirrored in some way -- see second screenshot above. I know it is a known bug that was not well understood and that you/we hoped to have fixed with latest vedo. But it seems there is still something weird hapenning with the coordinates in PointsDensity. Notice that now, the density is not completely off, eg. it's in the brain but still has a problem... See : https://github.com/brainglobe/brainrender/issues/261, https://github.com/brainglobe/brainrender/issues/243, https://github.com/brainglobe/brainrender/issues/217