Solid Volume Calculation

The method

double CalculateVolume( const MbSolid & solid,
                              double    deviateAngle )

calculates the volume of a solid.

The input parameters of the method are:

  • solid – a solid body

  • deviateAngle – a parameter that controls the calculation accuracy

The method returns the volume of the solid.

The method is declared in the mip_solid_area_volume.h file.

The deviateAngle parameter controls the calculation accuracy, and the computation time depends on its value. The deviateAngle parameter must be within the range 0.01 <= deviateAngle <= 0.35 radians.