Measuring Height, Width & Length of a Box?

How does it know where in 3D to place a dot? That is the part you care about first. Maybe more but first, how does it measure?

True, this is something im coming back with to this thread! IF i'm able to deduce everything.