You basically intersect the curve with a sphere of Radius D, then pick the first intersection point. Then you place a new sphere of radius D on that point and intersect again. Be sure to only include the remaining subdomain of the curve for intersections.