Hi Maia
I think the following should be done:
- You start with the mean, as without having seen any data, it is your best guess.
- When looking for correspondence, then you always search the correspondence from your current state, so the moving mesh. This is under the assumption that the closer you are, the better you can estimate the correspondence.
I only had a quick look at the code and I would maybe replace the starting point with the mean instead of using the reference on line 64.
You are right for the initial visualization the correspondences are searched by starting from the mean. But later on in the ICP on line 59 it seems that the moving mesh is used for fitting as I would do it too.
Best, Andreas