API Reference > OdGe Classes > OdGeSurface Class > OdGeSurface Methods > closestPointTo Method > OdGeSurface::closestPointTo Method (OdGePoint3d&, OdGeTol&)
OdGeSurface::closestPointTo Method (OdGePoint3d&, OdGeTol&)
Syntax
C++
OdGePoint3d closestPointTo(const OdGePoint3d& point, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint3d& point 
[in] Input 3D point to which the closest point on this surface is calculated.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Returns the point on this surface closest to the specified point. 

 

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