Click or drag to resize

VolumeMassPropertiesCompute Method (Brep, Boolean, Boolean, Boolean, Boolean)

Compute the VolumeMassProperties for a single Brep.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.3
Syntax
public static VolumeMassProperties Compute(
	Brep brep,
	bool volume,
	bool firstMoments,
	bool secondMoments,
	bool productMoments
)

Parameters

brep
Type: Rhino.GeometryBrep
Brep to measure.
volume
Type: SystemBoolean
true to calculate volume.
firstMoments
Type: SystemBoolean
true to calculate volume first moments, volume, and volume centroid.
secondMoments
Type: SystemBoolean
true to calculate volume second moments.
productMoments
Type: SystemBoolean
true to calculate volume product moments.

Return Value

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