Brep.GetVolume Method (Double, Double)

BrepGetVolume Method (Double, Double)

Compute the Volume of the Brep. If you want proper Volume data with moments and error information, use the VolumeMassProperties class.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public double GetVolume(
	double relativeTolerance,
	double absoluteTolerance
)
Public Function GetVolume ( 
	relativeTolerance As Double,
	absoluteTolerance As Double
) As Double

Parameters

relativeTolerance
Type: SystemDouble
Relative tolerance to use for area calculation.
absoluteTolerance
Type: SystemDouble
Absolute tolerance to use for area calculation.

Return Value

Type: Double
The volume of the Brep.
See Also