Hi!
Ladies and gentlemen: Physical Properties Scanner
(Click the image to download the script!)
You can scan objects for their physical properties. The scanner can handle several objects on one run. You can tell the scanner your reference scale to real world and by entering material density the mass and moments of inertia of solid objects will be reported. With the default settings the results should be accurtae to about 2 or 3 decimals.
This one is not doing any visualization (sorry) and it is missing the full set of shell properties. (What I'd need is to find formulas for (local) Ix, Iy and Iz of a triangle in arbitrary orientation in space, when the corner points are expressed as vectors.)
A couple of warnings:
#1 The script is HEAVY. It may take up to about 5 - 10 seconds to launch, but it will.
#2 There is a stubborn bug, that tends to interrupt the process the first time you run the script in a session. The second time it usually works for me.
The bug is caused by the traceRay call on line 343. To see the error message you'll first need to comment out the Thread definition on lines 643 and 645. Line numbers are from Notepad++.
Enjoy the science!
Oh, and I usually have an editing copy, that I have saved for example as "Phys_Props.groovy.java" -- Using the .java in the end makes the code much more readable in Notepad++