Function for creating a planar curve between two other planar curves

This is a related thread: https://discourse.mcneel.com/t/help-needed-with-finding-centre-line-through-2-curves Note that there are various ways to define the average curve, A definition I find useful is the locus of points which are equal distances from the side curves, with distance defined as the shortest distance between the point and the side curves. A discussion of a method to find that curve using Rhino is here Help needed with finding centre line through 2 curves - #73 by davidcockey and a simple Grasshopper version follows.

Edit - cut and paste of posts from thread referenced.

davidcockey

9d

Method for mid-curve which is locus of points which are equal distances from the side curves. This definition is independent of curve parameterization, and of relative position of curve ends.

  • Create set of circles which are tangent to both side curves. (Spacing of circles is not critical.)
  • Find center point of each circle
  • CurveThroughPt through center points. (Chord may give smoother result than Uniform.) Alternative would be InterpCrv.

Attached example was done manually in Rhino. Should be possible to “automate” using Grasshopper. DC_Mid01.3dm (118.5 KB)


DC_Mid01.JPG874x677 46.9 KB

2 LikesReply

Akche001

9d

1

here you go! Experimental drawing_David_option.3dm (111.5 KB)
David_option.gh1 (10.6 KB)

[
David option.png1798x863 110 KB

](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/c/7cacf3dbf3a55885ad7eda87792d68028d3917bf.png)