Grasshopper

algorithmic modeling for Rhino

Hi 

Im trying to divide a curve with the divdist component to then generate a polyline from the divided points.

i want this polyline to made up of multiple predetermined linear lengths say 1m, 2m 4m. 

when i input multiple values into the divdist all i get is the same curve divided multiple time by the same value over and over. 

any ideas how i can control this?

thanks

Views: 2200

Replies to This Discussion

It would be nice to use a loop algorithm. This one is an example using "Anemone" plug-in.

Attachments:

this is a great solution. Thankyou

As I recall, iteration is the only proper way to do this - a loop using Anemone.  I know I've posted code like that here in the past...  OK, see next post.

This can be close ('Crv 1') except when the polyline takes too big a "short cut" from the curve ('Crv 2'):

Attachments:

As I recall, iteration is the only proper way to do this - a loop using Anemone.

P.S.  Rats, 'Crv 1' isn't internalized in the GH file I attached - oh well.

Attachments:

P.P.S.  I just looked at Hyungsoo Kim's code and we took a very different approach inside the loop.  I used 'DivDist', then split the curve at the first point and passed the remainder of the curve back into the loop.  Attaching code again with both curves internalized.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service