Geometric modeling of mechanical parts affected by shape error