API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::getClosestLoopTo Method
OdDbMPolygon::getClosestLoopTo Method
Syntax
C++
virtual int getClosestLoopTo(const OdGePoint3d& worldPt) const;
Parameters 
Description 
const OdGePoint3d& worldPt 
[in] 3d point of world coordinate  

index of closest loop.

Find within pick box the closest loop from OdDbMPolygon to input 3d point within pick box. 

 

  • Return -1 if no one loop into pick box
  • Around of point created a pick box. Size of pick box get from system variable PICKBOX.
  • If two loop at the same distance from the point will be returned loop with lower index.
  • If two loop within pick box - return more closest to worldPt
Copyright © 2002–2020. Open Design Alliance. All rights reserved.