API Reference > OdBr Classes > OdBrEntity Class > OdBrEntity Methods > OdBrEntity::getSurfaceArea Method
OdBrEntity::getSurfaceArea Method
Syntax
C++
OdBrErrorStatus getSurfaceArea(double& dArea, const double& dTolRequired = dUnspecified, double& dTolAchieved = dUnspecified) const;
Parameters 
Description 
double& dArea 
[out] Surface area 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 surface area of the entity as a double value. The surface area property is applicable for most entities, that represent volumetric figures. 

 

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

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