# Create Closed Curve from Segments?

**URL:** <https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [September 17, 2026, 6:58am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789 "2026-09-17T06:58:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cumberland](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cumberland/32/770886_2.png) [@Cumberland](https://discourse.mcneel.com/u/Cumberland)\
**Post date:** [September 17, 2026, 6:58am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/1 "2026-09-17T06:58:46Z")

</div>

Hi all. I do need to find a way to create closed curves from a bunch of segments that some to overlap, some not. In this example I do need to remove the red ends, so the other remaining segments can close.

 ![Remove_Ends](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/4/1/34109ca8a0f0f3afd9a85a3a75c48fe37d7747c0.png)

[Remove\_Ends.gh](https://discourse.mcneel.com/uploads/short-url/skkjtcj8EDLgwDaIgTmb02VwD5y.gh) (12.1 KB)

---

<div class="post-metadata">

**Author:** ![mc\_rash](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mc_rash/32/674679_2.png) [@mc\_rash](https://discourse.mcneel.com/u/mc_rash)\
**Post date:** [September 17, 2026, 7:26am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/2 "2026-09-17T07:26:59Z")

</div>

Have you tried region union?

---

<div class="post-metadata">

**Author:** ![Cumberland](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cumberland/32/770886_2.png) [@Cumberland](https://discourse.mcneel.com/u/Cumberland)\
**Post date:** [September 17, 2026, 7:55am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/3 "2026-09-17T07:55:19Z")

</div>

Yes, and I do get: “Solution exception:Object reference not set to an instance of an object.”

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [September 17, 2026, 8:08am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/4 "2026-09-17T08:08:10Z")

</div>

There are better ways:

 ![Screenshot 2026-09-17 100759](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/4/4/e446b33e92bbcb7ecaeda97741a8cf4484b9a1d6.png)

[Remove\_Ends VR 1.gh](https://discourse.mcneel.com/uploads/short-url/tiyQ5MS7SX1bVjuoiSdSZOBcp14.gh) (29.9 KB)

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [September 17, 2026, 8:12am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/5 "2026-09-17T08:12:05Z")

</div>

If you want to try… you can first pass your curves through line and arc containers, Clean Tree Now you have two streams and you can see how you move from there. Maybe intersect the arcs with the lines to only get the relevant intersections? Or try to sort and correct the direction of the arcs, and then Connect Curves with position set to 0?

I am not fan of the Surface Split above. But it seems to work.

---

<div class="post-metadata">

**Author:** ![lazard](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/lazard/32/769124_2.png) [@lazard](https://discourse.mcneel.com/u/lazard)\
**Post date:** [September 17, 2026, 9:44am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/6 "2026-09-17T09:44:46Z")

</div>

You can get the result with a single component called Geometric Cycles which comes with [Heteroptera plugin](https://www.food4rhino.com/en/app/heteroptera).

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/1/5/e15d663bddab396d932a4070617a55a4e1539ebe.png)

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [September 17, 2026, 11:47am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/7 "2026-09-17T11:47:43Z")

</div>

There a number of plug-ins with this functionality. Parakeet for example has Network Regions:

 ![Screenshot 2026-09-17 134705](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/6/7/567d09dbea7062df66661979180e20f42c818d4e.png)

---

<div class="post-metadata">

**Author:** ![lazard](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/lazard/32/769124_2.png) [@lazard](https://discourse.mcneel.com/u/lazard)\
**Post date:** [September 17, 2026, 12:13pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/8 "2026-09-17T12:13:45Z")

</div>

> [@Volker\_Rakow](#):
>
> There a number of plug-ins with this functionality.

I’m aware of that. Flexibility has similar components as well and probably a few others.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/0/7/507020ea6a4f8e53dd77a2af41b1dd88dcae7937.png)

Anyway, my point was that he can achieve the same result in a simpler way using a single component, ofc if using a plugin works for him.

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [September 17, 2026, 12:20pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/9 "2026-09-17T12:20:10Z")

</div>

> [@lazard](#):
>
> Flexibility has similar components as well and probably a few others.

This is one of things I hate about GH1. So many plug-ins covering the same holes in core functionality junking up my panel real estate and confusing my context double-click searches.

---

<div class="post-metadata">

**Author:** ![Cumberland](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cumberland/32/770886_2.png) [@Cumberland](https://discourse.mcneel.com/u/Cumberland)\
**Post date:** [September 17, 2026, 1:09pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/10 "2026-09-17T13:09:46Z")

</div>

I totally agree with this, but also it is a positive in this because for the same operation where one solution fails, other one can solve-it. I do tried over the time all the “Curve Region” components that I can find and I do need to switch continuously between them as in some cases one of them works meantime the other do fail. Same here. This curves are the result of the Make2D operation as I do search for a solution to extract the inside-outside boundaries of the 3D parts. For this operation I do tested whatever solution I was able to find and all of them do fail in some form or shape. Same thing, one solution works in some cases but fails in other cases. I do need to use this in production and the last thing I do need is to debug components when they do fail to work and I do have deadlines to met.

---

<div class="post-metadata">

**Author:** ![DavidRutten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidrutten/32/755688_2.png) [@DavidRutten](https://discourse.mcneel.com/u/DavidRutten)\
**Post date:** [September 17, 2026, 1:38pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/11 "2026-09-17T13:38:59Z")

</div>

This won’t help you in Grasshopper 1, but the Grasshopper 2 Curve Boolean component handles this even without any seed points.

 ![Screenshot 2026-09-17 at 15.37.37](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/1/7/217fb13c0068d81953063e03e3917542682b2f85.png)

---

<div class="post-metadata">

**Author:** ![Cumberland](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cumberland/32/770886_2.png) [@Cumberland](https://discourse.mcneel.com/u/Cumberland)\
**Post date:** [September 17, 2026, 2:24pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/12 "2026-09-17T14:24:48Z")

</div>

Good to know for the future when I will upgrade. One component that also I would love to see in Gh2 is a component to extract the inside-outside boundaries of the BREPs as NURBS curves. Like Mesh Shadow but one that can output NURBS curves instead on small segments for arcs and circles. This is very useful for CNC machining parts where I do need to cut the overall in-out shape of the 3D parts. Right now the only solution that works is producing segmented curves but I didn’t found any reliable solution to extract the overall NURBS curves from BREPs.

---

<div class="post-metadata">

**Author:** ![DavidRutten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidrutten/32/755688_2.png) [@DavidRutten](https://discourse.mcneel.com/u/DavidRutten)\
**Post date:** [September 17, 2026, 2:57pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/13 "2026-09-17T14:57:25Z")

</div>

> [@Cumberland](#):
>
> […] to extract the inside-outside boundaries of the BREPs as NURBS curves. Like Mesh Shadow but one that can output NURBS curves instead […]

I’m not 100% clear on this. The Mesh Shadow component operates on silhouettes. Is that what you mean by “boundaries”? I merely ask because the “B” in Brep stands for “boundary” but those would be the trims and edges of the faces that make up the brep.

---

<div class="post-metadata">

**Author:** ![Cumberland](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cumberland/32/770886_2.png) [@Cumberland](https://discourse.mcneel.com/u/Cumberland)\
**Post date:** [September 17, 2026, 3:11pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/14 "2026-09-17T15:11:35Z")

</div>

> [@DavidRutten](#):
>
> The Mesh Shadow component operates on silhouettes. Is that what you mean by “boundaries”?

Yes, I do need the overall shapes both inside and outside like the MShadow does, but as NURBS curves instead of small segments. Like the shadow of the object projected on a surface. In this case I used Make2D which produces a bunch of curves that I do need to sort and eliminate all the curves that are not passing through the parts.

---

<div class="post-metadata">

**Author:** ![DavidRutten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidrutten/32/755688_2.png) [@DavidRutten](https://discourse.mcneel.com/u/DavidRutten)\
**Post date:** [September 17, 2026, 4:31pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/15 "2026-09-17T16:31:28Z")

</div>

Silhouette exists as a GH2 component, but it may not give as clean an output for breps as it does for meshes. You’ll have to test it and file specific reports. It is also tightly linked to camera views, it doesn’t take a direction and a plane

 ![Screenshot 2026-09-17 at 18.29.01](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/d/7/7d71a0a53139d7cf9ad76326da6b19c33143f2c9.jpeg)

It may make more sense to improve the Mesh Shadows component to also take surfaces, and output nurbs whenever appropriate.

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [September 17, 2026, 4:39pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/16 "2026-09-17T16:39:31Z")

</div>

Another native Grasshopper solution if you were intent on taking the intersection route:

 ![Screenshot 2026-09-17 183705](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/3/2/a32a21c3675c63b5fe0ebdf9b7195163c1d2d94d.png)  
[Remove\_Ends VR 2.gh](https://discourse.mcneel.com/uploads/short-url/999OjYxdMyxRj36aT9s7VztNv1J.gh) (47.1 KB)

---

<div class="post-metadata">

**Author:** ![Eef\_Weenink](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eef_weenink/32/764753_2.png) [@Eef\_Weenink](https://discourse.mcneel.com/u/Eef_Weenink)\
**Post date:** [September 17, 2026, 5:32pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/17 "2026-09-17T17:32:08Z")

</div>

Good suggestion, so I worked a bit on that.  
Few components needed. Regards, Eef

 ![Scherm­afbeelding 2026-09-17 om 19.29.42](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/0/a/90a280c3d8a36647e3d573c574bdff4db088fe69.png)  
 ![Scherm­afbeelding 2026-09-17 om 19.29.15](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/4/9/149e9bb1746d93c68a1331c8b65995345a5877ad.png)  
[Remove\_EndsEW.gh](https://discourse.mcneel.com/uploads/short-url/wbESZScr8K5JCs5vkDPHtPxWxT7.gh) (17.6 KB)

---

<div class="post-metadata">

**Author:** ![Cumberland](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cumberland/32/770886_2.png) [@Cumberland](https://discourse.mcneel.com/u/Cumberland)\
**Post date:** [September 18, 2026, 6:38am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/18 "2026-09-18T06:38:45Z")

</div>

Fennec components do have also a Silhouette Parallel that produces good results but unfortunately it is also producing additional curves that I don’t need.

 ![Silhouette Parallel_Fennec](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/d/9/5d9588dbf6f94198ce727a0a87196df1150a9f5e.png)

---

<div class="post-metadata">

**Author:** ![Cumberland](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cumberland/32/770886_2.png) [@Cumberland](https://discourse.mcneel.com/u/Cumberland)\
**Post date:** [September 18, 2026, 6:54am UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/19 "2026-09-18T06:54:31Z")

</div>

This works good it this situation, but I do need a more general solution.

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [September 18, 2026, 2:27pm UTC](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789/21 "2026-09-18T14:27:02Z")

</div>

I don’t think there is going to be a generalization without some restrictions like regions (curves in a plane) and only extentions without dirty intersections (like were the fillet curves to intersect adjacent lines twice).

@Cumberland An improvement on my first solution:

 ![high res test](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/7/8/8780a0ccf420f9def5e760d0d0d9d54d1bf9b00b.png)  
[Remove\_Ends VR 3.gh](https://discourse.mcneel.com/uploads/short-url/c3pBgyirTZDGxisdvqthNx4d37I.gh) (17.8 KB)

which can deal with the cirumstance when the outer loop of curves cannot form a clean boundary surface:

 ![Screenshot 2026-09-18 161504](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/1/8/218418d64fa43d515d0546dd38521ccc26afa483.png)

This should be a general purpose replacement for Geometric Cylces and the like.

This was brought to my attention before but I dismissed it as myth: under cirumstances Deconstruct Brep will return joined curves instead of individual edge segments?!

 ![Screenshot 2026-09-18 161920](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/7/d/e7d409aed378cdf2d0a3efe10590bd4e09242955.png)

> [@Deconstruct Brep Returns Unsplit Edges?](https://discourse.mcneel.com/t/deconstruct-brep-returns-unsplit-edges/170288):
>
> Hi! I have a brep where the boundary curves have some rounded edges and I wonder why the DeconstructBrep return the outer edges with the splitted outer curves while the inner curve is not splitted. Any workaround to return all the edges? As you can see, it does work for brep without smoother inner curve

* * *

Right. So my moron self could have dealt with this more simply:

 ![high res test](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/c/e/cce993fbe6d42b5af4cb3b4e4c1d50b3fae3af73.png)  
[Remove\_Ends VR 4.gh](https://discourse.mcneel.com/uploads/short-url/obgStIpvqna3MriE5mhn5w8ihX3.gh) (25.4 KB)

[Next page](https://discourse.mcneel.com/t/create-closed-curve-from-segments/222789.md?page=2)
