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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: