Click or drag to resize

AreaMassPropertiesCompute Method (Brep, Boolean, Boolean, Boolean, Boolean, Double, Double)

Compute the AreaMassProperties for a single Brep.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.10
Syntax
public static AreaMassProperties Compute(
	Brep brep,
	bool area,
	bool firstMoments,
	bool secondMoments,
	bool productMoments,
	double relativeTolerance,
	double absoluteTolerance
)

Parameters

brep
Type: Rhino.GeometryBrep
Brep to measure.
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.
relativeTolerance
Type: SystemDouble
The relative tolerance used for the calculation. In overloads of this function where tolerances are not specified, 1.0e-6 is used.
absoluteTolerance
Type: SystemDouble
The absolute tolerancwe used for the calculation. In overloads of this function where tolerances are not specified, 1.0e-6 is used.

Return Value

Type: AreaMassProperties
The AreaMassProperties for the given Brep or null on failure.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen brep is null.
See Also