Intersection between markups closed curve node on the plane and a line

VTK locators can compute all intersection points of a polydata with a line extremely fast, for example vtkCellLocator::IntersectWithLine. You can get the curve as polydata by calling GetCurveWorld method of the curve node.