Metrology automation and geometric analysis for additive manufacturing