Grasshopper

algorithmic modeling for Rhino

Hello Everyone,

I am trying to create a perforation pattern that is based on rectangles rather than circles of a grid.  I currently have a result that is working, but I want to make some modifications that I just can't quite figure out.

Zoom in of the lower left hand corner...

1.  First off, I am not sure why two versions of the rectangles are showing, the original and the scaled versions from the image.  This doesn't appear to be affecting my final results, so not a big deal, but would like to understand why there are two and get rid of the original rectangles if possible.

2.  I would like to change the scaling factor of the the rectangles in the Y direction.  They are currently scaling too small based on the image I provided.  Is there a way to set a lower value minimum so that the rectangles are not quite so small.  Please not that I am only wanting to scale the rectangles in the Y direction.  I want the X to currently remain constant.

3.  Lastly, I would like to offset the grid points in the y direction randomly so that the image does not seem so gridded.  These should shift no more than 3/8 of the distance between the grid from the center point.

Desired Result:

Any help is greatly appreciated!

Views: 1582

Attachments:

Replies to This Discussion

  1. Disable preview for the 'Rectangle' component to hide the originals.
  2. Use 'ReMap' on the output of 'Image Sampler'.  And you don't need 'PCen (Center of Rectangle)' in this case, when you already have the 'RecGrid'.
  3. Moving the scaled rectangles vertically, randomly within specified bounds, is trickier but can be done.

NOTE: Due to a well known, long-standing GH bug, the 'Image Sampler' is lost when I save a modified copy of your file.  You will have to copy/paste it from the file you posted.  SO ANNOYING!

Attachments:

Thank you Joseph!  That worked perfect... now just need to figure out the vertical shifting.

It sounds like you want overlap between the rows?  Though I don't quit understand these words from your image:

  • "buffer zones shift with grid point"?
  • "random interval to not exceed more than 3/8 of the total distance between grids"?

This isn't that.  Overlapping rows without colliding rectangles sounds considerably more complicated to me.

Attachments:

This is very close and similar to other results I have been messing with today.  I would like to keep the points the same distance apart in the vertical direction, but just move them north or south randomly in each column.  I think the points need to shift after the point grid has been generated.

Your image still keeps everything within the original rectangular grid box generated by the original grid.  The big idea is to get the horizontal grid to disappear and seem more random.  I want to make sure the rectangles are generated from the new points after they are shifted.  This will give the whole image more of a randomized look to it.

So close, I just cant figure out the right sequence or pieces.  It has been a number of years since i have used grasshopper, and it is all coming back to me very slowly.  

Thanks!

Josh

I'm distracted, without the time to handle the details...  But if you want to shift all panels in each column up by the same random value, this might be another step in that direction?

Attachments:

Thank you so much Joseph.  All of these thoughts have help me come up with a number of options to share with my team.  Your help is greatly appreciated.  Cheers!

Josh

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service