API Reference > OdGe Classes > OdGeSurface Class > OdGeSurface Methods > OdGeSurface::getClosestPointTo Method
OdGeSurface::getClosestPointTo Method
Syntax
C++
void getClosestPointTo(const OdGePoint3d& point, OdGePointOnSurface& pntOnSurface, 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.  
OdGePointOnSurface& pntOnSurface 
[out] Receives the closest point on the surface.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

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

 

By default this function throws exception "not Implemented". Should be implemented in derived classes.

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