API Reference > OdDb Classes > OdDbHatch Class > OdDbHatch Methods > OdDbHatch::makeClosedLoop Method
OdDbHatch::makeClosedLoop Method
Syntax
C++
static OdResult makeClosedLoop(EdgeArray& edgePtrs, const OdDbObjectIdArray& dbObjIds, const OdGeTol& gapTolerance, const bool& isEdgeArrayConsistent);
Parameters 
Description 
EdgeArray& edgePtrs 
[out] array of curves contains closed loop curves  
const OdDbObjectIdArray& dbObjIds 
[in] array of object id from what made edgePtrs  
const OdGeTol& gapTolerance 
[in] bridge the gap that less than a value specified by this tolerance  
const bool& isEdgeArrayConsistent 
[in] is objects id in dbObjIds placed sequentially around the loop
 

eOk if edgePtrs contains closed loop curves

Creates an ordered closed loop. 

 

If dbObjIds placed sequentially (and isEdgeArrayConsistent set 'true') result will be correct(if the result is not correct, decrease or increase gapTolerance). Otherwise a loop may be cut and formed incorrectly.

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