Calculation of resistance of three-dimensional configurations