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. 

Gets the direction of the specified loop in the closed polygon. Returns eOk if successful, or eInvalidInput if loop index is out of range. 

 

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