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
)
Public Shared Function Compute (
geometry As IEnumerable(Of GeometryBase),
area As Boolean,
firstMoments As Boolean,
secondMoments As Boolean,
productMoments As Boolean
) As AreaMassProperties
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:
AreaMassPropertiesThe AreaMassProperties for the entire collection or null on failure.
See Also