Grasshopper

algorithmic modeling for Rhino

I've been searching the site for a way to use either attractor curves or image sampler to alter my design. The intent is to have slats that vary in width from a minimum of say 2" to a maximum of 12" in relation to the curve/image. 

I've been trying to divide the curves and use closest point to get a desired result, but am failing to do so. Image attached is similar to what I'd like to accomplish.

apologies if there is a thread on this already, but I kept finding ones pertaining to dots and extrusions.

Thank you in advance!

Views: 963

Attachments:

Replies to This Discussion

I found this site that is doing exactly what I'm interested in setting up with Grasshopper. 

https://store.photocarver.com/en/

Anyone have a experience with this? 

Thank you!

The way I've approached this is:

  1. subdivide straight curves with many points.
  2. Use image sampler values to offset (move) those points perpendicular to the curve at each point, in both directions.
  3. Create new lines from offset points.

in this example below, I added random noise/variation. but you can generate the look you want, with clean lines all the way. 

Thank you Jonah, I used your theory and am having mild success for what I'm looking to build. 

I would like to set it up to have a min/max distance between the divided points on each line, so that they are never less than 3" apart. I'm not sure how I should set up a domain to do so, any thoughts? 

Attachments:

First off, I always set images sampler domains to 0 to 1. Then unitize the grid of sampling points to fit in that domain. This way any image can be applied to any size surface and I never have to worry about changing the domain in the image sampler. 

I know this definition uses vertical lines so it makes sense to offset in the world X direction. I like to make definitions that will work in more than just one design. So I tried to make the offset direction driven by the lines, regardless of where they are in the world. 

As for limiting the offsets to a domain, Remap Numbers is your friend. 

I've organized things according to my "best practices" standard. All groups have named input and output parameters; much like programming functions that expect input variables and return an output. This also cleans up the overall wiring jumble and makes it less of a problem to make some wires hidden. This all may go beyond what you asked for... tis the season.

This goes beyond what I was expecting but is definitely appreciated. I'm just learning GH so seeing some good layout practices is great, thank you very much. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service