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] Array of vertices.  
const OdArray<OdGeDoubleArray> & bulges 
[in] Array of bulge values.  
OdIntArray & rejectedObjs 
[out] Return indices of objectId from the IDs array that led to errors while creating loops.  
bool excludeCrossing = true 
[in] Set true to disable creating a polygon if there are crossings between loops.  
double tol = OdDbMPolygonCrossingFuzz 
[in] Measurement accuracy tolerance.
 

eAmbiguousInput if excludeCrossing is true and there are crossings between loops or if OdDbMPolygon has loops; eInvalidInput if the IDs array is empty or has rejected objects; eOk if a polygon appended successfully.

Creates loops from vertices and bulges for empty OdDbMPolygon. 

 

If there is at least one rejected objectId, loops will not be added. OdDbMPolygon should not contain loops.

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