Update 14/01/2014: You no longer need this script – this functionality is now included in the new 3D printing toolbox that was added in Blender 2.67.
If you need to calculate the volume of an object, here’s a nice script that will help you do it. It was coded by GreyBeard following a question on BlenderArtists.
There are a few things to keep in mind:
- Mesh must be triangulated (ctrl-t)
- Mesh must me manifold
- Must have normals pointing outside
- Apply size and rotation before using (ctrl-a)
If you’re unfamiliar with running external Python scripts, here’s how to use it: open the Text Editor window and load the script into it. In the 3D window, select the object whose volume you want to calculate, then in the Text Editor window press ALT+R to run the script. The result will be displayed in the console:
OSX Users: if you need a console, you’ll need to start Blender from the commandline. Open a terminal and enter the following command:
Further down the discussion, Yorik uses this script in another way: he has modified it so that it will spit out a bill of materials for his architectural projects. Quite clever – I wonder what else you could use it for :)
This script is still a little rough around the edges, for example it doesn’t handle object scaling well yet, and of course it could do with a nice GUI. Maybe someone is interested in improving it?