Click or drag to resize

LengthMassPropertiesCompute Method (Curve, Boolean, Boolean, Boolean, Boolean)

Calculates the length mass properties of a curve.

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

Parameters

curve
Type: Rhino.GeometryCurve
The curve to measure.
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 curve, or null on failure.
See Also