Grasshopper

algorithmic modeling for Rhino

Goal:
to transform geometry from an attractor grid into "x" amount of sizes based on their radii

Steps:
1.) a standard attractor grid is set up to produce output geometry
2.) a list of their radii are sorted to retrieve a new list from smallest to largest
3.) that list is broken into sub-lists based on a slider controlled by the user (this slider is highlighted in purple in the gh file)
4.) the mean is taken from these sub-list groups to feed back into the geometry as the radius to produce a standard size for each sub-list.

Problem:
it appears that once the list is sorted from smallest to largest it loses its uv coordinates... i have the sub-list outputs working with their averaged sizes fed back into a list, but don't know where to go from here... i ultimately want these sizes to still be responsive to the attractor point... any suggestions are much appreciated!


standardize.3dm
standardize.gh

Views: 434

Replies to This Discussion

I think you need to sort the uv co-ordinates in the A input of the Sort Component (synchronous) As you've flattened the K input you will need to do the same to the A input. Then using your newly sorted UVs input these into your intended polygon component and the average Radii (flatten the inputs) and you should have what you're after.
I think this is what u are looking for:
Attachments:
yes! you guys are both correct! needed to sort the uv coordinates along with the radii...

thanks a lot guys

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