How to retrieve an intersection point from the CurveIntersections type

I’ve tried to implement the Intersection.CurvePlane Method which returns a value of the type CurveIntersection.
How can I get the intersection point on the curve from the CurveIntersection type?

I guess it works with the CurveIntersections.Item Property, but I never came across a syntax like this.

public IntersectionEvent this[
	int index
] { get; }

Can somebody help?
Best wishes,

private void RunScript(Curve c, Plane p, ref object A)
  var intersections = Intersection.CurvePlane(c, p, RhinoDocument.ModelAbsoluteTolerance);
  var pts = new List<Point3d>();
  foreach(var intersect in intersections)
    if (intersect.IsPoint)
  A = pts;
} (5.0 KB)

1 Like

Thank you, Mahdiyar!
The syntax is surprisingly simple.
Best wishes, Oliver