Opposite of Attractor?

unhandled

(Jessyesterday) #1

Hello,

I have what seems like it should be a simple GH problem but can’t seem to find an existing solution.

I have a point field generated over a surface, and I would like to basically push points away from particular curves. Any ideas on combinations of components that I could use to essentially make a DEtractor?

Thanks!


(Michael Pryor) #2

Invert your vectors and values. Look at the remap and reverse components. Further help may come once you upload a file.


(Jessyesterday) #3

@Michael_Pryor

Here is the script I am using; only the purple highlighted section is what I am concerned with at the moment. The items I want to push the points away from are referenced in the curve component. I assume I can use a divide curve to get representative points to use in the attractor. I tried going that route and didn’t get any result whatsoever. I’m pretty inexperienced with GH and especially using attractors. I know they can be used to scale, but I would hope they could be used to push/pull as well.

Tool 4.22.gh (42.2 KB)
Rhino.3dm (380.1 KB)


(Michael Pryor) #4

Many examples here: Need help using Grasshopper to create dynamic grid of points


(Jessyesterday) #5

I looked at that thread and tried Pufferfish (pinch n spread), but I’m not really getting any kind of result. That thread appears to have a more complex goal than what I’m trying to do.


(Michael Pryor) #6

have a point field generated over a surface, and I would like to basically push points away from particular curves.

Maybe you need some better description. Everything in that thread does exactly what you describe.


(Jessyesterday) #7

I’ve described my goal as clearly as possible, it’s very simple in theory. I am just not getting an outcome when trying pufferfish at its greatest strength. Barely anything happens. I’ve read through that entire thread, but this is where my inexperience becomes problematic…since I am not trying to accomplish exactly what that script is, I am having a difficult time translating it to my purposes.

Thank you for responding nonetheless. I will ask my peers who are more familiar with my objective and are able to explain things to me.


(Michael Pryor) #8

I am just not getting an outcome when trying pufferfish at its greatest strength

Do you mean the component is not working? Here works fine, have you looked at example files?

Anyway based on the link I already sent you can do something like this, which is what you describe " have a point field generated over a surface, and I would like to basically push points away from particular curves."

PushPointsCurve.gh (16.6 KB)


(Jessyesterday) #9

Based on those images, that is not exactly what I want to do; I am essentially trying to create an easement, around selected curves, in which there would be no points at all.


(Michael Pryor) #10

So do you mean to cull(remove) points?


CullPointsCurve.gh (12.5 KB)

A sketch of your goal would help.


(Jessyesterday) #11

I don’t want to remove the points…just push them away a certain distance.

If I start with 200 points in the field, I still want to have 200 points at the end, but I want a clearance around the selected detractor.


(Michael Pryor) #12


SpreadPointsCurve.gh (13.9 KB)


(Jessyesterday) #13

That looks like what I’m going for. Just one more thing, can you summarize what steps you’re taking here? I need to be able to understand the reasoning behind placing each component in this script. I just need to know what is going on after the surface divide since I’m generating points a different way.

It looks like you’re using the curve to pull the points, but I’m not sure what the number slider and the other components after are.

Thanks.


(Michael Pryor) #14

SpreadPointsCurve.gh (13.8 KB)