I have a 3D model of a complex object. I have been able to generate all possible points that are around 1 m away from the surface of any part of the object, so the collision is not possible:

Now my task is to generate a path for a robot that cover the whole area with set distance between scanning paths. Is there any known 3D path planning for coverage algorithm that can be used here? Is there any example of implementation? Picture no. 2 is a simple algorithm connecting dots after sorting and grouping points in given level. Unfortunately it will not work in more complex situations.