API Reference > OdGe Classes > OdGeSurface Class > OdGeSurface Methods > OdGeSurface::distanceTo Method
OdGeSurface::distanceTo Method
Syntax
C++
double distanceTo(const OdGePoint3d& point, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint3d& point 
[in] Any 3D point distance to which is measured.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Returns the distance to the point on this curve 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.