Grasshopper

algorithmic modeling for Rhino

I would like to divide a curve based on a sequence of lengths. In this example, the curve length is 130mm. Then to divide in a sequence of lengths 2mm, 10mm, 5mm. I would like to repeat this sequence until it gets to the end of the curve: 2, 10, 5, 2, 10, 5, 2, 10 , 5......until it reaches 130. (the last segment will be an odd length of course)

I manage to get the first part following other examples on the forum. the definition only does the first sequence of 2, 10, 5. I tried adding the sequence function to repeat it and then got a bit lost! 

Many thanks in advance!

Views: 3380

Attachments:

Replies to This Discussion

Hello John. One posible solution. Regards ;)

Attachments:

Like wiseM.

Wow wow. Thank you both. Great solutions! Didnt think of using the repeat data! Works great :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service