compute object volumes