Grasshopper

algorithmic modeling for Rhino

Hi!

I want to rotate segments from a line divided with points on each of these points. My problem when I do this is that most of the segments rotate equally and in the same direction except for the last one at the very top and I don't know why this happens.

I'll attach my file to make it easier to understand.

I've been trying to reconstruct a leaf venation and for this I need to be able to have a principal vein from which other secondary veins come from and so on. That is my objective. (My objective has been almost achieved on the lower part of the file except for the end of each vein and as the system repeats itself it gets even worse)

Hope you can help me,

Thanks! 

Views: 600

Attachments:

Replies to This Discussion

Okay, I had a look at your definition.

So your error was that Divide Curve outputs 6 parameters, but when you split the curve at those 6 it results in only 5 segments (actually you would even just need 4 parameters to split the curve into 5 segments). So then your data structure is off, when you rotate 5 curves around 6 points.

Later on in the file, you split the curve again, but you use the parameters of the 5 curves, resulting in 25 parameters, but you still only want to split each curve at 5 parameters. Otherwise it results in everything being duplicated 5 times and then when you rotate again, everything is off. Always make sure you have matching number of items in the data structure when you have one node with 2 different input with grafted data (dashed lines going in).

Also I am not sure exactly what you are trying to do, but if you are interested in Leafs and how they can be built more easily (the way nature does it), you should have a look at L-Systems. There is probably some threads on it here in the forum already. The way you are building your patch is ok, but a bit inefficient. 

Best, Armin.

Attachments:

Thank you very much! You're reply has been very helpful! I'm now able to continue with my work. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service