M_Rhino_Geometry_Brep_GetVolume_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Brep.GetVolume 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) Version: Rhino 6.0

Syntax

C#

public double GetVolume(
	double relativeTolerance,
	double absoluteTolerance
)

VB

Public Function GetVolume ( 
	relativeTolerance As Double,
	absoluteTolerance As Double
) As Double

Parameters

 

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

Return Value

Type: Double
The volume of the Brep.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Brep Class
GetVolume Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️