Grasshopper

algorithmic modeling for Rhino

Choosing a single value from multiple attractor points

Hi there. I'm working on a definition to morph repeated geometry based on its distance from some point attractors. I'm running into some list issues.

Basically, it's a bunch of triangles. Two of their points are fixed, and one is free to contract/expand along a guideline...the farther away a guideline is from an attractor, the more the free point is allowed to expand along the guideline. The free points are located based on a ratio d/d(max), where d is the guideline's particular distance from an attractor, and d(max) is the greatest distance between any guideline and attractor.

In order to get the greatest variation among the triangles in the pattern, I only want the closest attractor points to have any effect. So I've written the definition to sort the list of distances from any guideline curve to each of the attractor points, and choose the smallest value.

I'm able to set this up with a single unit cell, but I'm running into problems when I copy the cells into a full pattern. I know it's a list problem...when I select the shortest Curve CP distance for a repeated set of curves, I get back only one value, rather than a value for each curve in the list.

Is there a way to get this information? It would seem to me you ought to be able to compare data items of the same step number from multiple lists, and select the shortest value...but something here is going over my head.

Any ideas?

(ps. I'll post the definition files in a second).

Views: 1572

Attachments:

Replies to This Discussion

Here's a file + definition for a single unit cell, which is working.
Attachments:
And here's a file + definition for the full pattern, which isn't.

Thanks for taking a look...
Attachments:


here's the easiest way i've found to set up multiple attractors...

i'm looking at your def... might have an idea in a few mintues.
i'm not sure what your 'full pattern' 3dm file is about - what does the cairo tiling have to do with it?

Attachments:
Oh, I should have erased those lines--they're for an attractor-curve definition. I've attached a clean file.
Attachments:
Would this be of any help?

http://fancywires.com/?p=486
Awesome. Thanks for your help, everyone.

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