API Reference > OdBr Classes > OdBrEntity Class > OdBrEntity Methods > OdBrEntity::getPerimeterLength Method
OdBrEntity::getPerimeterLength Method
Syntax
C++
OdBrErrorStatus getPerimeterLength(double& dLength, const double& dTolRequired = dUnspecified, double& dTolAchieved = dUnspecified) const;
Parameters 
Description 
double& dLength 
[out] Perimeter length 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 perimeter length of the entity as a double value. The perimeter length property is applicable for most entities, that represent plane figures and some 3D figures. 

 

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

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