Hello I think you need the “minimum bounding box” to calculate the volume. Some links there
…
The other solution would be to use a Convex Hull. https://discourse.mcneel.com/search?q=3d%20convex%20hull