Statistical control of complex geometries, with application to Additive Manufacturing