Export volume, mass, weight and volume centroids from Rhino to .csv file

An interesting topic emerged at Mcneel forums: calculating Rhino solid’s volume, mass, weight and centroids. Then exporting that data into .csv file.
The following modest rhinoscript function tackles this issue. Check it at github.

Depending on Rhino unit system, data will be exported with following units:

units: Millimeters:    length(mm), volume(mm3), mass(g), weight(N – Newtons)
units: Centimeters:    length(cm), volume(cm3), mass(g), weight(N)
units: Meters:    length(m), volume(m3), mass(kg), weight(N)
units: Inches:    length(in), volume(in3), mass(oz – ounce), weight(N)
units: Feets:    length(ft), volume(ft3), mass(lb), weight(N)

Function additionally labels object’s number’s and volume centroid points are added to the Rhino file:

 

rhinoCSV

Exported .csv:

excelCSV