  V= n \cdot \frac{d^2}{2}   \cdot  \frac{a+b}{2} =\frac {nd^2}{2} \cdot (a-d \cdot \tg \frac{180^o}{n}).