Grasshopper

algorithmic modeling for Rhino

I am having a problem with NURBS curves, and other curves as well.  My problem is that for some reason I can never get the function to accept my first point, which is this case is 0,0,0.  See the attached definition to see what I'm talking about.  This is a subset of a larger definition.

I have tried setting this as an actual point as Rhino geometry as well as setting it up differently within Grasshopper, but it never seems to take.  Any ideas?

Views: 457

Attachments:

Replies to This Discussion

I guess if I make the point a list item it works. 

Look at this - see the problem?

If you 'Flatten' the list at the 'Nurbs V' input, it will work.  And/or you can simplify by doing this:

Thanks.  I sorted it out earlier and everything is working well now.  It's funny you bring up the simplification.  I was trying to do that as well, as I had been doing it at work a while back, but I forgot how!  That's sorted too now, so thanks!

Yeah, I guess the important thing to learn from this is why it failed and why flattening the list _OR_ using 'List Item' to get point 0,0,0 fixes the problem.  The way it was posted here, the list being fed to 'Nurbs' was partitioned - 0,0,0 in one list and the other points in a second list.  'Nurbs' (and many other components too) only works on points in a non-partitioned list.

By the way, here is another simplification; instead of this:

you could do this:

And then you could do this:

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service