Creating contour from loft

Planes are infinite:


So you need to either use BrepSurface intersection, or check if the result of CreateContourCurves is close enough to your plane origin:

foreach(var plane in planes)
{
    var contCurve = Brep.CreateContourCurves(loftedSurface[0], plane);
    foreach(var c in contCurve)
    {
      var t = 0.0;
      if (c.ClosestPoint(plane.Origin, out t, 10.0))
        contourCurves.Add(c);
    }
}


Contour.gh (18.9 KB)