API Reference > OdDb Classes > OdDbMline Class > OdDbMline Methods > getClosestPointTo Method > OdDbMline::getClosestPointTo Method (OdGePoint3d &, OdGePoint3d&, bool, bool)
OdDbMline::getClosestPointTo Method (OdGePoint3d &, OdGePoint3d&, bool, bool)
Syntax
C++
OdResult getClosestPointTo(const OdGePoint3d & pt, OdGePoint3d& ptOut, bool bExtend, bool bExcludeCaps = false) const;
Parameters 
Description 
const OdGePoint3d & pt 
[in] Input point.  
OdGePoint3d& ptOut 
[out] Output point.  
bool bExtend 
[in] Virtually extends Mline geometry.  
bool bExcludeCaps = false 
[in] Excludes Mline start/end caps and joints. 

Finds closest point to this Mline object.

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