API Reference > OdBr Classes > OdBrEntity Class > OdBrEntity Methods > OdBrEntity::getVolume Method
OdBrEntity::getVolume Method
Syntax
C++
OdBrErrorStatus getVolume(double& dVolume, const double& dTolRequired = dUnspecified, double& dTolAchieved = dUnspecified) const;
Parameters 
Description 
double& dVolume 
[out] Volume of the entity.  
const double& dTolRequired = dUnspecified 
[in] Tolerance required for the result of the calculation.  
double& dTolAchieved = dUnspecified 
[out] Tolerance achieved in the calculation.
 

A value of the OdBrErrorStatus type.

Provides the volume of the entity as a double value. The volume property is applicable for most entities, that represent volumetric figures. 

 

If the volume property is not applicable to the entity, odbrNotApplicable is returned. If an error occurs, the value of the volume argument remains unchanged.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.