Dynamo finds the contour centerline

Hello everyone, I am a beginner in Dynamo. I would like to inquire about how to find the middle line of a contour with known corner points


As shown in the above figure, I can obtain the contour corners of the surface through Dynamo. How can I obtain the middle line of the surface through these contour corners?

This may lean towards algorithmic problems rather than dynamo problems. I’m not sure if it’s a bit strange to ask this question on the dynamo forum, but I can’t find any other way to answer my question. Please accept my apology if there is anything indiscreet!

This may not work, but you can try this:

  1. take the two contours and loft them into a surface with a Surface.ByLoft node.
  2. Pull the Isocurve on the U axis at parameter 0.5 using Curve.ByIsoCurveOnSurface node. If that resulting curve runs between the contour lines, try the V axis instead.
1 Like

Thanks for your advice!!