Click or drag to resize

AreaMassPropertiesCompute Method (IEnumerableGeometryBase, Boolean, Boolean, Boolean, Boolean)

Computes the AreaMassProperties 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)
Since: 6.3
Syntax
public static AreaMassProperties Compute(
	IEnumerable<GeometryBase> geometry,
	bool area,
	bool firstMoments,
	bool secondMoments,
	bool productMoments
)

Parameters

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

Return Value

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