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 entity object IDs.  
OdIntArray & rejectedObjs 
[out] Return indices of objectId from the entity object IDs array that led to errors while 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 the IDs array is empty or has rejected objects; eOk if a polygon appended successfully.

Creates loops from entities for an empty OdDbMPolygon. Every ObjectId must be one closed loop.

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.