Grasshopper

algorithmic modeling for Rhino

Unsuccessful in making circular pattern based on image contrasts

I'm trying to make a pattern based on the tutorial given here

http://3.bp.blogspot.com/-KwBk8RkP6fU/T4zmsWSgpoI/AAAAAAAAAJ8/aLlYt...


I want circles to fill in the black areas based upon my image and make a geometrical pattern. Unfortunately, I am not getting the desired results.
I have attached the files for reference.

Views: 395

Attachments:

Reply to This

Replies to This Discussion

hi

you need to reparametrize your surface

also

change your u and v values higher

best

You'll have better luck if you post your Grasshopper code here and, separately, the image you are using for the Image Sampler'.

Here are the files that are being used. 

Attachments:

As noted by MARIO, you need to need to reparameterize your surface.  It would also be helpful to internalize your surface in the GH file (or create it with GH).

Then you need to convert the color value output of 'Image Sampler' to a more useful one for radius of the circles.  'Split AHSV' is good for that.

Finally, I changed the 'B' slider from Integer to Real, allowing fractions.

Attachments:

I want circles to fill in the black areas

Or... more specific to your question - multiply the 'A (Alpha)' output by 1 - 'V (Brightness)', and increase the resolution:

Attachments:

Resolution increased further to 120 and code added to filter out circles with zero radius (purple group):

Attachments:

Thanks a lot for helping me out!

How can I do this?

If I increase the circles' radii, the number of circles automatically adjust so that the final output resembles the image?

If you don't want the circles to overlap, you will need to decrease the resolution when you increase the radii.  Higher resolution looks better.  Have fun.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service