VolumeMassPropertiesCompute Method (Brep, Boolean, Boolean, Boolean, Boolean, Double, Double) |
Compute the VolumeMassProperties for a single Brep.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 7.10
Syntax public static VolumeMassProperties Compute(
Brep brep,
bool volume,
bool firstMoments,
bool secondMoments,
bool productMoments,
double relativeTolerance,
double absoluteTolerance
)
Public Shared Function Compute (
brep As Brep,
volume As Boolean,
firstMoments As Boolean,
secondMoments As Boolean,
productMoments As Boolean,
relativeTolerance As Double,
absoluteTolerance As Double
) As VolumeMassProperties
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. - 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:
VolumeMassPropertiesThe VolumeMassProperties for the given Brep or null on failure.
Exceptions See Also