API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > replaceMPolygonLoopAt Method > OdDbMPolygon::replaceMPolygonLoopAt Method (OdIntArray&, OdGePoint2dArrayArray&, OdArray<OdGeDoubleArray>&, OdIntArray &, bool, double)
OdDbMPolygon::replaceMPolygonLoopAt Method (OdIntArray&, OdGePoint2dArrayArray&, OdArray<OdGeDoubleArray>&, OdIntArray &, bool, double)
Syntax
C++
virtual OdResult replaceMPolygonLoopAt(const OdIntArray& loopIndices, const OdGePoint2dArrayArray& vertices, const OdArray<OdGeDoubleArray>& bulges, OdIntArray & rejectedLoop, bool excludeCrossing = true, double tol = OdDbMPolygonCrossingFuzz);
Parameters 
Description 
const OdIntArray& loopIndices 
[in] Array of loop indices.  
const OdGePoint2dArrayArray& vertices 
[in] Array of vertices.  
const OdArray<OdGeDoubleArray>& bulges 
[in] Array of bulge values for loops.  
OdIntArray & rejectedLoop 
[out] Return index of loop from the loopIndices that led to errors while replacing loops.  
bool excludeCrossing = true 
[in] Set true to disable creating a polygon if there are crosses between loops.  
double tol = OdDbMPolygonCrossingFuzz 
[in] Measurement accuracy tolerance.
 

eAmbiguousInput if excludeCrossing is true and there are crossings between loops; eInvalidInput if 'loopIndices' is empty or size not equal vertices size or bulges size; eInvalidIndex if loop index is out of range for number of loops; eOk if loops replacing of polygon is successfully.

Replace a polygon loops in the specified positions. 

 

If there is at least one rejected loop, loops will not be replaced.

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