Well, to a way it is like
Trekkerjoe says.
However, the scan doesn't move inch by inch, it moves coordinate by coordinate.
What is done is to first sort the bounding box minimum and maximum coordinates (x,y,z).
By doing that we have a very big advantage: every minimum coordinate that started...