Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbMPolygon::replaceMPolygonLoopAt Method (int, const OdGePoint2dArray&, const OdGeDoubleArray&, bool, double)
Syntax
C++
virtual OdResult replaceMPolygonLoopAt(int loopIndex, const OdGePoint2dArray& vertices, const OdGeDoubleArray& bulges, bool excludeCrossing = true, double tol = OdDbMPolygonCrossingFuzz);

Replaces a polygon loop in the specified position. 

 

Parameters
Description
loopIndex
[in] Loop index.
vertices
[in] Array of vertices.
bulges
[in] Array of bulge values for loops.
excludeCrossing
[in] Set true to disable replace a loop if there are crosses between loops.
tol
[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.

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

Copyright © 2002-2022. Open Design Alliance All rights reserved.