API Reference > OdDb Classes > OdDbMline Class > OdDbMline Methods > getClosestPointTo Method > OdDbMline::getClosestPointTo Method (OdGePoint3d &, OdGeVector3d &, OdGePoint3d&, bool, bool)
OdDbMline::getClosestPointTo Method (OdGePoint3d &, OdGeVector3d &, OdGePoint3d&, bool, bool)
Syntax
C++
OdResult getClosestPointTo(const OdGePoint3d & pt, const OdGeVector3d & norm, OdGePoint3d& ptOut, bool bExtend, bool bExcludeCaps = false) const;
Parameters 
Description 
const OdGePoint3d & pt 
[in] Input point.  
const OdGeVector3d & norm 
[in] Plane normal.  
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 projected on specified plane.

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