Grasshopper

algorithmic modeling for Rhino

Rectangular grid inverse point attractor, remapping only y values, not x values

Hi, I'm trying to build a inverse point attractor in which the rectangles are scaled DOWN as the distance increases from the point, in both the x and y directions. I've put something together that only does part of what I need it to, by scaling the sizes only in the y direction.

Here's what I used to get where I am:

http://www.grasshopper3d.com/forum/topics/how-to-inverse-attractor-...

As you can see the size of the rectangles aren't scaled down in the x direction like they are in the y direction. I'm guessing this is due to the remapping. Do I have to remap the x and y values separately? How would I go about this? 

If any more info is needed, please let me know. I'm a bit of a beginner. 

Views: 687

Attachments:

Replies to This Discussion

Hello Theo,

I found where your problem comes from.

What you're doing is remaping the distance of each point from a source domain that is different for each column of you grid to a domain that is identical for all columns (0.25 to 0.5).

So yes, for each column, the furthest point will always be remaped to 0.25 and the closest will always be remaped to 0.5. So all your columns are identical.

You just need to flatten the N inpout of the Bound component so all points will be remaped with the same source domain.

Perfect! Thank you! Anywhere that has a good tutorial about reviewing those settings like flatten, graft, etc?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service