Grasshopper

algorithmic modeling for Rhino

Divide curve in segments no bigger than specific distance

Hello,

I am trying to divide a curve in segments "no bigger than" a meter, for example.

So if I have a curve with a lenght of 9 meters the division would be in ten segments of 0.9 meters.

If the curve has 11 meters the division would be in 12 segments of 0.91 meters, and so on...

Is this posible to do automatically?

Many thanks,

Views: 373

Replies to This Discussion

I've just done this definition, but I am sure there must be a faster and more elegant way...

I don't know what you did because I'm not going to reconstruct your code from a screen shot.  Please post your code next time?

Attachments:

Thank you mate!

Following your advice I've created a cluster that works quite well.

Cheers

Attachments:

There is bug in this code, a missing detail.  See the error?  div_crv_2017Nov12b.gh

The fix is to round up ('Ceiling') instead of to the 'Nearest' integer, which is what the 'Divide N' input was doing.  div_crv_2017Nov12c.gh

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service