[Connect u11 any language] Constructing elements volume box

Hello,

I am using CE update 11, VS 2015

Lets say we have 3d element with volume >0.

I want to construct smallest possible rectangular box around my element.

This means that box volume has to be as close as possible to elements volume.

Any ideas, existing functions?

thanks

Nenad