API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::createLoopsFromBoundaries Method
OdDbMPolygon::createLoopsFromBoundaries Method
Syntax
C++
virtual OdResult createLoopsFromBoundaries(const OdDbObjectIdArray & ids, OdIntArray & rejectedObjs, bool excludeCrossing = true, double tol = OdDbMPolygonCrossingFuzz);
Parameters 
Description 
const OdDbObjectIdArray & ids 
[in] array of entities objects ids.  
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 entities for empty OdDbMPolygon. Every ObjectId must be one closed loop.

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