Grasshopper

algorithmic modeling for Rhino

Sort of arraycrv with incremental scaling and constant spacing

Hi There,

I'd like to do a sort of arraycrv with incremental scaling of the objects and constant spacing, per the image. Any ideas or even hints would be greatly appreciated.

Thanks a bunch,

Steve Workman

Views: 844

Replies to This Discussion

Quite tricky, I'm not sure if I managed to solve it to your satisfaction.The more curvy the curve (relative to the size of the objects you're putting on it) the less accurate an answer you'll get.

The basic idea is:

  1. Measure the width of all the objects: {Wa, Wb, Wc, Wd,...,Wz}
  2. Define the gap size G.
  3. Duplicate G until we have one less than the number of objects: {G,G,G,...,G}
  4. Weave the width and gap sizes into a single list {Wa,G,Wb,G,Wc,G,Wd,...,G,Wz}
  5. Use that list as the dash pattern input.
  6. Orient the objects from their current positions to the dash segments.

--

David Rutten

david@mcneel.com

Attachments:

Thanks, David. At the very  least it gives me some logic to  begin with, and a direction. 

Really appreciate it.

Steve

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service