Autonomous 3D modeling for robot arm based scanning