Grasshopper

algorithmic modeling for Rhino

I am currently running a group of components recursively. They process a given curve, extract its points and revalue them in one axis. I then use Interpolate Curve on those new points and use the end point and tangent of this new curve to generate the direction for the next curve. 

The problem I am running into is that sometimes the curve loops back on itself past the designated endpoint. The loop is so tight that you can't tell that it is actually looped and it just looks like the curve extends past its endpoint. Other times Interpolate Curve generates the arc opposite the desired one. Since I am generating a tangent to this curve at the end point it can obviously cause problems for the direction of the next curve. 

I have been taking care of the problem by changing the number of points used in the curve, but am finding that even high numbers of points will generate errors and it is seriously undermining my confidence in the solution. Attached are images of the outputs with the only variable changing is the number of points used to construct the curves.

Any recommendations or insights are welcome.

30 Points (good output)



62 Points (seriously no bueno)



63 Points (um, no thanks)



199 Points (good output)



200 Points (wth?)

Views: 541

Replies to This Discussion

Is no one else getting instances like this with IntCurv?
David! Thanks so much for the new Fit Curve component in 8.0002. Adding this between the curve generation and processing cured 99% of the problems I was having here.
Still, can I see the file that is creating this horror?

--
David Rutten
david@mcneel.com
Seattle, WA
Did you get the file? I sent it to your email.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service