API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::setLoopDirection Method
OdDbMPolygon::setLoopDirection Method
Syntax
C++
virtual OdResult setLoopDirection(int lindex, OdDbMPolygon::loopDir dir);
Parameters 
Description 
int lindex 
[in] Loop index as an Ingeter value in range 0 to numMPolygonLoops()-1.  
OdDbMPolygon::loopDir dir 
[in] Loop direction. 

Sets the direction for 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.