SmApiFindEdge#

Defined in SM_API/inc/SmApiQueries.h

SmApiStatus SmApiFindEdge(
SmBrep *pBrep,
const SmPoint3d &crPoint,
ULONG &rlEdgeIndex,
double &rdParam,
)#

Returns the edge nearest to crPoint. There is no distance limit: a point far from every edge still returns the nearest one, so check the distance if the point may be off the Brep.

Parameters:
  • pBrep – [in ]: Brep to search

  • crPoint – [in ]: Point on or near edge

  • rlEdgeIndex – [out]: Index of found edge in brep

  • rdParam – [out]: Parameter on found edge