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
)
Public Shared Function Compute (
curves As IEnumerable(Of Curve),
length As Boolean,
firstMoments As Boolean,
secondMoments As Boolean,
productMoments As Boolean
) As LengthMassProperties
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:
LengthMassPropertiesThe LengthMassProperties for the given enumeration of curves, or null on failure.
See Also