r1 and r2 are the radii of two ends of the frustum and h s the vertical height.