Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbMPolygon::createLoopsFromBoundaries Method
Syntax
C++
virtual OdResult createLoopsFromBoundaries(const OdDbObjectIdArray & ids, OdIntArray & rejectedObjs, bool excludeCrossing = true, double tol = OdDbMPolygonCrossingFuzz);

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

Parameters
Description
ids
[in] Array of entity object IDs.
rejectedObjs
[out] Return indices of objectId from the entity object IDs array that led to errors while creating loops.
excludeCrossing
[in] Set true to disable creating a polygon if there are crosses between loops.
tol
[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.

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

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