Click or drag to resize

LengthMassPropertiesCompute Method (IEnumerableCurve, Boolean, Boolean, Boolean, Boolean)

Calculates the length mass properties of an enumeration of curves.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.6
Syntax
public static LengthMassProperties Compute(
	IEnumerable<Curve> curves,
	bool length,
	bool firstMoments,
	bool secondMoments,
	bool productMoments
)

Parameters

curves
Type: System.Collections.GenericIEnumerableCurve
An enumeration of curves.
length
Type: SystemBoolean
true to calculate length.
firstMoments
Type: SystemBoolean
true to calculate length first moments, length, and length centroid.
secondMoments
Type: SystemBoolean
true to calculate length second moments.
productMoments
Type: SystemBoolean
true to calculate length product moments.

Return Value

Type: LengthMassProperties
The LengthMassProperties for the given enumeration of curves, or null on failure.
See Also