Solid Volume Calculation

The function

double CalculateVolume( const MbSolid & solid,
                              double    deviateAngle )

calculates the volume of a solid.

The input parameters of the function are:

  • solid – a solid body;

  • deviateAngle – a parameter that controls the calculation accuracy.

The function returns the volume of the solid.

The function 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.