Grasshopper

algorithmic modeling for Rhino

Hi David,
I am trying close a curve in the my Python component. I am using standard SDK command rs.CloseCurve but it is not work. Now this function(close a curve) no available in the Grasshopper. Do you know how to solve this problem?

Views: 771

Attachments:

Replies to This Discussion

Hi Valentin,

As Naruto already showed, RhinoCommon method behind rs.CloseCurve function is Curve.MakeClosed. I can not speak in David's name, but one of the reasons why there's no grasshopper component (at least not a standard one) which replicates the rs.CloseCuve functionality may be because Curve.MakeClosed method is really unreliable at the moment, as you have already experienced.
So basically everything is ok with your code.

A workaround for this issue is to not use Curve.MakeClosed at all, but create an interpolated curve through a set of present curve division and/or discontinuity points with one of Periodic CurveKnotStyle types (I used Chord).

Check the attached file.

Attachments:

Thanks you 筑梦NARUTO and you Djordje for your quick reply. David promised on the 2010 that he repair this problem in future. But maybe he forgotten about this. It's very important function inside grasshopper. I hope that is coming soon  we will forget about this problem inside grasshopper. David where is you? We want your help!!!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service