Development of algorithms for generating connected midsurfaces using feature information in thin walled parts