# Connect Curves in Rhino common similar to the grasshopper node

**URL:** <https://discourse.mcneel.com/t/connect-curves-in-rhino-common-similar-to-the-grasshopper-node/79494>\
**Category:** Rhino Developer\
**Created:** [February 28, 2019, 7:19pm UTC](https://discourse.mcneel.com/t/connect-curves-in-rhino-common-similar-to-the-grasshopper-node/79494 "2019-02-28T19:19:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flokart](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/flokart/32/765122_2.png) [@flokart](https://discourse.mcneel.com/u/flokart)\
**Post date:** [February 28, 2019, 7:19pm UTC](https://discourse.mcneel.com/t/connect-curves-in-rhino-common-similar-to-the-grasshopper-node/79494/1 "2019-02-28T19:19:53Z")

</div>

In Grasshopper is a node called Connect Curves (Picture) is in rhino common a similar command?  
 ![Unbenannt](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/b/e/bec694554ba9093656d5321134d732797e0b1426.jpeg)

Any help is welcome.  
Thanks in adcanced

---

<div class="post-metadata">

**Author:** ![flokart](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/flokart/32/765122_2.png) [@flokart](https://discourse.mcneel.com/u/flokart)\
**Post date:** [March 3, 2019, 3:47pm UTC](https://discourse.mcneel.com/t/connect-curves-in-rhino-common-similar-to-the-grasshopper-node/79494/2 "2019-03-03T15:47:14Z")

</div>

to connect curves i use in the end blend curve in a recursive function and join blend curves and blended curves together like this.All curves are already sorted with the shortest distance to each other.

```
    # create blend curves between the BrepEdge gaps 
    ta = rh.Geometry.BlendContinuity.Position
    CU=[]
    n = 0
    def CON(n):
        if len(CU) == len(L)-1:
            return False
        CU.append(rh.Geometry.BrepEdge.CreateBlendCurve(L[n],L[n+1],ta))
        return CON(n+1)
    CON(n)
                                    
    # combine BrepEdge list with BlendEdge list and join all Edges
    CC = CU+L
    CJ = rh.Geometry.BrepEdge.JoinCurves(CC)
```

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/685184_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [March 4, 2019, 4:18pm UTC](https://discourse.mcneel.com/t/connect-curves-in-rhino-common-similar-to-the-grasshopper-node/79494/3 "2019-03-04T16:18:50Z")

</div>

Hi @flokart,

The `Connect Curves` component uses both [Curve.CreateBlendCurve](https://developer.rhino3d.com/api/RhinoCommon/html/Overload_Rhino_Geometry_Curve_CreateBlendCurve.htm) and [Curve.JoinCurves](https://developer.rhino3d.com/api/RhinoCommon/html/Overload_Rhino_Geometry_Curve_JoinCurves.htm).

– Dale

---

<div class="post-metadata">

**Author:** ![flokart](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/flokart/32/765122_2.png) [@flokart](https://discourse.mcneel.com/u/flokart)\
**Post date:** [March 5, 2019, 9:21pm UTC](https://discourse.mcneel.com/t/connect-curves-in-rhino-common-similar-to-the-grasshopper-node/79494/4 "2019-03-05T21:21:01Z")

</div>

Thanks dale for the info.
