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 to calculate the area like a hatch (used before version 20.3).
 

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

Returns the area of this entity. 

 

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