Grasshopper

algorithmic modeling for Rhino

Hi, David and guys here, today I had a little "discovery" when experimenting with GH, I was just connecting points generated by functions with polylines and interpolation curves to create function graphs, and I found out that in some cases, the interpolation curves just would not do the work, unless I set the degree from default 3 to 1, which is essentially just a polyline. Or I could set the knotstyle to uniform spacing, it generates the curve, but in the wrong form. :(

So I guess it is a little buggy with "IntCrv" function, or somebody know the cause and solution?

PS: u can find the gh file in the attachment

Views: 1162

Attachments:

Replies to This Discussion

Simple case of Computer Says No

The first point is a bit extreme, remove this or cap it at a better distance and you will get the correct form.

1.0e24 is a Yotta or 100,000,000,000,000,000,000,000 units away

if kilo is 1.0e3

mega = 1.0e6

giga = 1.0e9

tera = 1.0e12

peta = 1.0e15

exa = 1.e18

zetta = 1.0e21

yotta = 1.0e24


More Carol here for the uninitiated 

edit should start 1,000,......,000

hehe, nice reference from Little Britain! Thx, Danny, I culled the 0th data, and it works fine. And then my second, actually real questions is this:

when I generated two polylines, no matter what function I use to generate them, when I reparameterize them and try to evaluate by t, I always get two points with same X coordination. But when I try this with two interpolation curves, the t will generate two points with different X coordinations. 

It seems that when polylines are reparameterized , the domain is the X-domain I set for them. And in the case of interpolation curves, the domain is the actual length of the curve converted to the upper limit. So why is that? Which is correct or both are correct?

Oh, the GH file with culled extreme

Attachments:

That is the way it works yes.

The Polyline creates control points at the locations you have given. The IntCrv does not. t is a parameter based on the location of Control Points. 

If you want to evaluate a curve at a given X I would suggest creating a plane at that location and intersecting the Curve with it.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service