86/* for calculation of volume1 look at calculation of DDConsImpl of a volume1. Furthermore z can be smaller than zero. This makes sense since volumes we have to substract */
87double volume1 = (rEnd * rEnd + rBegin * rBegin + rBegin * rEnd) * z / 3;