Email Record: Efficient calculation of trapped volumes in the layered manufacturing process