Grasshopper

algorithmic modeling for Rhino

convert image to fritting pattern and specify dots sizes

Hey!
Im new in GH and need help:
 
Ill start from the end- I need to make a portrait made out of dots fritting pattern (pointioalist image) in a range of *10 different dots sizes maximum*- when the smallest size is 5mm diameter and the bigest is 10mm diameter.
I mananged to convert the image to fritting pattern and apply the range of the biggest and smallest- but I dont know how to get a result of only 10 diffrent sizes.
Is there any way to do so?
plaese find attached my current script
 
thank you
Harduf

Views: 550

Replies to This Discussion

1. I would sort the grayscale values (sort component).

2. Then split the list in 10 branches (partition component).

3. and for each branch use different radius. Branch 0 smallest, 10 biggest with series component.

Thank you so much for your quick answer

Just one thing- how do I sort the grayscale values? can you be more specipic? 

Sort grayscale values with list of points, to sort alongside.

Just use sort component.

You didn't post your code.

You can 'Remap' the grayscale values from their natural bounds to the '0 To 9' domain, round them to integers (0..9) and use them as index values to a list of the ten valid diameters.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service