SmApiSurfaceClosestPoint#
Defined in SM_API/inc/SmApiQueries.h
- SmApiStatus SmApiSurfaceClosestPoint(
- const SmSurface *pSurface,
- const SmPoint3d &crPoint,
- SmPoint3d &rClosestPoint,
- SmTArray<SmPoint2d> &rUVs,
- double &rdDistance,
- Parameters:
pSurface – [in ]: Surface to query
crPoint – [in ]: Point to find closest on surface
rClosestPoint – [out]: One globally closest point on surface
rUVs –
[out]: Nonempty solver-reported natural/NURBS UVs for rClosestPoint;
may not contain every preimage
rdDistance – [out]: Distance from input point to rClosestPoint