Grasshopper

algorithmic modeling for Rhino

Image Sampler, limited circle sizes and domain questions

Hi, I am new to grasshopper, and I came across the image sampler and would like to make something with that.

So first, instead of the rectangular grid, I need the circles to follow a customized diamond grid, which I was able to do so. Second, I needed the circles to be within a certain boundary, I am not sure if there are better ways to do it, but I managed to do it with the "trim with region" command.

And then I am stuck. I wanted to limit the size of the circles, there are 2 things I want to do.

1) Limit the number of sizes to for example 5 sizes, 1", 7/8", 3/4", 5/8", and 1/2"

or

2) Limit the size of circles to max 1" and min 1/2" and don't worry about the sizes in between.

are there ways to do this?

Also, this might be a little dumb, but could someone explain the x and y domains in the Image Sampler Settings to me? I am having some trouble locating the part of the image I want.

I am attaching my files here, it would but great if someone could help me out!

Thanks,

Yan

The third and four

Views: 3189

Attachments:

Replies to This Discussion

Hello Yan,

for the circles to be inside a region you could also use point in curve component. this outputs points that inside, outside and coincident to the region curve you are using. you can then cull the points, according to this pattern and get the inside points in a list, where then you can sample and create the circles. but your method works too.

To have 1 and 1/2 max and min diameters you can use remap values component. you will have to input the image sampler output values, as values to be remapped, the domain of these image values using bounds component and finally construct a target domain where you will set you min max wanted values.

to have 5 sizes one option could be to test image sampler output and break them down to 5 domains. then using expression or components you can test these values and if they between each of the 5 domain remap them to be one of the 5 values.

you can also this video about the image sampler. (explains the image sampler domain stuff)

best,

alex

Hi Alex, THank you for your help, I will try to see if I can make it work :)

Yan

Yan,

I put together a sample for you using PanelingTools plugin, which works well with grids and attractors. I hope it helps.

Attachments:

Hi Rajaa,

There is only a small chance that you are going to see this. I see that you posted 2 years ago.

If you do see this could you answer a few questions for me? I am making a 39ft sign for a new building that we are building and am trying to use the image sampler for a perforation pattern. I am hoping to use your expression. In the "Move" and "Scale NU" commands you set an expression - what did you set for this?

I tried to open the attachment but kept getting a different grasshopper expression.


Thank you

Raine

Also, what is the B in the Create a Diagrid segment of the sample?

Hi Raine,

You need to install PanelingTools plugin to see this definition:

http://www.food4rhino.com/app/panelingtools-grasshopper-rhino-50

"B" stands for a base point.

Let me know if you still have problem seeing the definition.

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