Locates input point within subdivision. It finds subdivision vertex that is the closest to the input point. It is not necessarily one of vertices of the facet containing the input point, though the facet (located using cvSubdiv2DLocate) is used as a starting point.

C# | Visual Basic | Visual C++ |
public static IntPtr cvFindNearestPoint2D( IntPtr subdiv, MCvPoint2D32f pt )
Public Shared Function cvFindNearestPoint2D ( _ subdiv As IntPtr, _ pt As MCvPoint2D32f _ ) As IntPtr
public: static IntPtr cvFindNearestPoint2D( IntPtr subdiv, MCvPoint2D32f pt )

- subdiv (IntPtr)
- Delaunay or another subdivision
- pt (MCvPoint2D32f)
- Input point

pointer to the found subdivision vertex (CvSubdiv2DPoint)