Grasshopper

algorithmic modeling for Rhino

Hello everybody,

I have a basic issue with dividing curve, which I could not find here so far. (I'm not a programmer)

I want to divide a curve into several segments which lengths are specified in a list. Number of the segments may vary but their total length is always equal to the length of the curve.

For instance:

curve length: 100

list with values:

20

40

40

20

Results divided 4 segments with length (20;40;40;20)

Hope someone can help!

Thank you very much

Views: 15931

Replies to This Discussion

Hi Aleksandar,

Please look the definition....

Definition share here

Attachments:

Remy, thanks for reply!

I got an IO error when opening and can't load it. My grasshopper build is 0.9.0006

Anyway I'll find a way to open ti.

thank again!

Hi Remy, This could be the simplified version for ur definition.... though you may need to cull out the points out of the curve.

Hi,

20+40+40+20=120

100!=120

Well, you see why I'm not programming :)

In case...

Thank you Remy,

I got it :)

thanks for your help!

Hi Remy.
Your definition works like a charm. I'm trying to adapt it to a requiremet a little further.
I need to divide several curves in preset intervals, and using several gene pools would be really cumbersome. I was wondering if it would be possible to use just a gene pool component with all the intervals continuously but having it applied to the different curves so that when a curve can't be divided anymore the definition is applied to the next one.

Miguel,

A definition or shema would be more useful to me to understand your question.

Thanks

I hope this gives you the idea of how to do this.  I think what might differ for you is how you source the input data and how you manage the output downstream.  If you have any questions be sure to ask.

Chris

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service