API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::getLoopDirection Method
OdDbMPolygon::getLoopDirection Method
Syntax
C++
virtual OdResult getLoopDirection(int lindex, OdDbMPolygon::loopDir& dir) const;
Parameters 
Description 
int lindex 
[in] Loop index as an Ingeter value in the range 0 to numMPolygonLoops()-1.  
OdDbMPolygon::loopDir& dir 
[out] Reference to a variable in which the loop direction must be saved.
 

eOk if successful, or eInvalidInput if loop index is out of range.

Gets the direction of the specified loop in the closed polygon. 

 

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