API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::balanceDisplay Method
OdDbMPolygon::balanceDisplay Method
Syntax
C++
virtual OdResult balanceDisplay();

eOk if check and changes is successful, or eInvalidInput if getMPolygonTree not generate tree.

Checks loops for intersection and direction. If the cycle is placed at an even level of the tree, and the direction is clockwise, it will be marked as invalid (it will not be displayed). To change direction to the right, use balanceTree. If the cycle intersects with another cycle, the cycle with a higher index will be marked as invalid (do not draw). Loops that have been marked as invalid but have the correct direction and no intersections will be marked as valid and will be drawn again. 

 

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