Mass Property Computation


calcMassProp( Geom, Density, Resolution )
Calculate mass properties for a set of objects assumed to represent a closed surface bounding a volume. The input can be tensor product surfaces, polygons, or both.
Returns
<matrix> matrix containing Surface area, Volume, Density, Mass, Centroid, X moment, Y moment, Z moment, XY product, YZ product, ZX product, Inertias at the centroid, Principal axes and inertia
Geom
<any> If either the object or its geometry is a shell, tensor product surfaces, or polygons, we can use it.
Density(1.0)
<number> (Optional) The density to use (mass per unit volume.)
Resolution(0.01)
<number> (Optional Numerical resolution to use in the calculation.
Example
s:makegeom(unitsphere);
calcmassprop(s); # simple, fast
calcmassprop(s,2.0,0.001); # slower, more accurate, 2x density

C_Shape_Edit User's Manual Home Page 
Alpha_1 User's Manual.
Copyright © 1998, University of Utah
a1-web@gr.cs.utah.edu