API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > replaceMPolygonLoopAt Method > OdDbMPolygon::replaceMPolygonLoopAt Method (int, OdGePoint2dArray&, OdGeDoubleArray&, bool, double)
OdDbMPolygon::replaceMPolygonLoopAt Method (int, OdGePoint2dArray&, OdGeDoubleArray&, bool, double)
Syntax
C++
virtual OdResult replaceMPolygonLoopAt(int loopIndex, const OdGePoint2dArray& vertices, const OdGeDoubleArray& bulges, bool excludeCrossing = true, double tol = OdDbMPolygonCrossingFuzz);
Parameters 
Description 
int loopIndex 
[in] Loop index.  
const OdGePoint2dArray& vertices 
[in] Array of vertices.  
const OdGeDoubleArray& bulges 
[in] Array of bulge values for loops.  
bool excludeCrossing = true 
[in] Set true to disable replace a loop if there are crosses between loops.  
double tol = OdDbMPolygonCrossingFuzz 
[in] Measurement accuracy tolerance.
 

eAmbiguousInput if excludeCrossing is true and there are crosses between loops; eInvalidIndex if loop index is out of range for number of loops; eOk if a loop replaced successfully.

Replace a polygon loop in the specified position. 

 

This method replaces behavior such as: e.g.: storeCopyLoop(loopIndex); removeMPolygonLoopAt(loopIndex); if(insertMPolygonLoopAt(loopIndex, ...) != eOk) restoreCopyLoop(loopIndex);

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