API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::createLoops Method
OdDbMPolygon::createLoops Method
Syntax
C++
virtual OdResult createLoops(const OdGePoint2dArrayArray & vertices, const OdArray<OdGeDoubleArray> & bulges, OdIntArray & rejectedObjs, bool excludeCrossing = true, double tol = OdDbMPolygonCrossingFuzz);
Parameters 
Description 
const OdGePoint2dArrayArray & vertices 
[in] An array of vertices array.  
const OdArray<OdGeDoubleArray> & bulges 
[in] An array of bulge value array.  
OdIntArray & rejectedObjs 
[out] return indices of objectId from array ids that led to errors creating 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 crosses between loops or if OdDbMPolygon has loops; eInvalidInput if ids array is empty or has rejected objects eOk if a polygon appended successfully. note if there is at least one rejected objectId a loops will not be added. OdDbMPolygon should not contain loops.

Create loops from for empty OdDbMPolygon.

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