Turn a grid of laser-measured heights into a volume estimate, the method behind LiDAR and self-driving cars.
Laser rangefinders measure distance by timing how long a light pulse takes to return after reflecting off a surface, using the speed of light. Scanning a grid of points across an object gives a grid of heights, and from that grid you can estimate the object's volume using numerical integration - the same principle self-driving cars use to build a 3D picture of the world around them from LiDAR scans.