Click or drag to resize

VolumeMassPropertiesCompute Method (IEnumerableGeometryBase, Boolean, Boolean, Boolean, Boolean)

Computes the VolumeMassProperties for a collection of geometric objects. At present only Breps, Surfaces, Meshes and Planar Closed Curves are supported.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static VolumeMassProperties Compute(
	IEnumerable<GeometryBase> geometry,
	bool volume,
	bool firstMoments,
	bool secondMoments,
	bool productMoments
)

Parameters

geometry
Type: System.Collections.GenericIEnumerableGeometryBase
Objects to include in the area computation.
volume
Type: SystemBoolean
true to calculate volume.
firstMoments
Type: SystemBoolean
true to calculate volume first moments, volume, and volume centroid.
secondMoments
Type: SystemBoolean
true to calculate volume second moments.
productMoments
Type: SystemBoolean
true to calculate volume product moments.

Return Value

Type: VolumeMassProperties
The VolumeMassProperties for the entire collection or null on failure.
See Also