Grasshopper

algorithmic modeling for Rhino

Hi,

 

This is the end result of the activity...the boxes become smaller as they spproach the attractor point. I am trying to create the opposite effect with the boxes becoming larger closer to the attractor point (This needs to be completed in two different ways).

 

Thanks

Matt Croft

Views: 4891

Replies to This Discussion

have a look here.

1.This image is with the original attractor (repeller) before inverting.

2. Here is the image using remap logic and component, it exactly inverts the original attraction list, which is clear by the image and accurate to the distance logic. 

3. Here is the way as you suggest dividing the slider value by the distance list, This inverts the numbers but not proportional to the input list, It also does not maintain its nice gradient. 

that will give you inverse numbers, but not ones equal to the output of the distance component. That is the goal of remap to invert proportionally exact.

Here is the definition

Attachments:

here is the exact reverse with remap. 

Attachments:

yeah sorry about the duplication of question. Thanks!! could you possibly zoom in on the remap part? Just want to know what wires to what.

i attached the file,below the image, download it. 

Oh sweet thanks man. It worked! Is there an alternative way to do it?

Remap is just the most elegant way to invert a mapping...

You can do the calculation of what Remap does with native GH math components.

You could use the GraphMapper to apply an inverted function, mapping large input to small output and small input to large out.

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