API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > appendLoopFromBoundary Method > OdDbMPolygon::appendLoopFromBoundary Method (OdDb2dPolyline*, bool, double)
OdDbMPolygon::appendLoopFromBoundary Method (OdDb2dPolyline*, bool, double)
Syntax
C++
virtual OdResult appendLoopFromBoundary(const OdDb2dPolyline* pPoly, bool excludeCrossing = true, double tol = OdDbMPolygonCrossingFuzz);
Parameters 
Description 
const OdDb2dPolyline* pPoly 
[in] Pointer to the OdDb2dPolyline entity.  
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; eOk if a polygon appended successfully.

Appends a polygon loop. 

 

OdDb2dPolyline must be closed. This means that it must have three or more points and all points should not lie on one straight line.

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