# Why is this Invalid Curve?

**URL:** <https://discourse.mcneel.com/t/why-is-this-invalid-curve/42732>\
**Category:** Grasshopper\
**Created:** [April 1, 2017, 11:16am UTC](https://discourse.mcneel.com/t/why-is-this-invalid-curve/42732 "2017-04-01T11:16:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdidier](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/bdidier/32/703127_2.png) [@bdidier](https://discourse.mcneel.com/u/bdidier)\
**Post date:** [April 1, 2017, 11:16am UTC](https://discourse.mcneel.com/t/why-is-this-invalid-curve/42732/1 "2017-04-01T11:16:52Z")

</div>

Hello

I have a problem with planar Rhino curve: when I assign it to a Curve parameter in Grasshopper, it is reported as: `Invalid curve`.  
This is the curve:  
 ![](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/a/5/a55a596685d9f37b02a2b85bfdd8d307487709cc.png)

This is what I get in Grasshopper:  
 ![](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/a/5/a50b52c1c0dae7445f3409a51b7b9185a0ffec63.png)

If I rebuild it in Rhino or Grasshopper then everything is okay.  
But can someone please explain to me why is this Rhino curve an Invalid curve?

Thank you very much !  
[Invalid Curve.3dm](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/6/4/64277722637fb224abebcfca9acc05640658d5e4.3dm) (37.6 KB)  
[Invalid Curve.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/c/4/c45eb28577c72e03d25b2f1365dc5ebe9ff3e843.gh) (9.8 KB)

---

<div class="post-metadata">

**Author:** ![davidcockey](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidcockey/32/771921_2.png) [@davidcockey](https://discourse.mcneel.com/u/davidcockey)\
**Post date:** [April 1, 2017, 2:51pm UTC](https://discourse.mcneel.com/t/why-is-this-invalid-curve/42732/2 "2017-04-01T14:51:34Z")

</div>

SelBadObjects reports the polycurve as a “bad object”. If you Explode it and then Join the pieces together into a polycurve the polycurve is no longer a bad object. So the problem appears to be with how the individual curve segments were originally joined into a polycurve. How was the polycurve created?

---

<div class="post-metadata">

**Author:** ![bdidier](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/bdidier/32/703127_2.png) [@bdidier](https://discourse.mcneel.com/u/bdidier)\
**Post date:** [April 2, 2017, 8:17am UTC](https://discourse.mcneel.com/t/why-is-this-invalid-curve/42732/3 "2017-04-02T08:17:10Z")

</div>

Thank you David ! That nailed it!  
The polycurve was created as an offset of a smaller curve. Then split into parts, and joined. So I wonder why after that first first \_Join, it didn’t work?  
But never mind, you solved the problem !  
Thank you once again for your knowledge !
