API Reference > OdGe Classes > OdGeSurface Class > OdGeSurface Methods > closestPointTo Method > OdGeSurface::closestPointTo Method (OdGePoint3d &, OdGePoint2d *, OdGeUvBox*, OdGeTol &)
OdGeSurface::closestPointTo Method (OdGePoint3d &, OdGePoint2d *, OdGeUvBox*, OdGeTol &)
Syntax
C++
OdGePoint3d closestPointTo(const OdGePoint3d & point, OdGePoint2d * param, const OdGeUvBox* uvBox, const OdGeTol & tol = OdGeContext::gTol) const;
Parameters 
Description 
const OdGePoint3d & point 
[in] Any 3D point.  
OdGePoint2d * param 
[out] uv-coord of closest point.  
const OdGeUvBox* uvBox 
[in] uv-box of closest point.  
const OdGeTol & tol = OdGeContext::gTol 
[in] Geometric tolerance. 

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

 

Native envelope is not considered in calculation process. The nearest point is searched on the surface limited by uvBox-envelope. In case of uvBox == NULL && param == NULL closestPointTo(point, tol) is called. If uvBox == NULL, the nearest point is searched for surface bounded by its envelope. If param == NULL, param is not calculated. don't use for unbounded uvBox

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