Get nearest point of point cloud from a picked point

Hi there.
I have a point cloud and there is a polyline in the drawing. Let's say I want to get the point cloud points for each vertices of the polyline. There is any dot net solution for this, something like nearest 3d point of point cloud based on the polyline vertex?