API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::getArea Method
OdDbMPolygon::getArea Method
Syntax
C++
virtual OdResult getArea(double& area, bool areaViaHatch = false) const;
Parameters 
Description 
double& area 
[out] Receives the area.  
bool areaViaHatch = false 
[in] Set true, if need calculate area like a hatch(used before version 20.3). 

Returns eOk if successful, or an appropriate error code if not.

Returns the area of this entity. 

 

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