Attempt to Line Attractor on a Brep

Hi everyone

Attempt to Line Attractor.3dm (468.5 KB)

Attempt to line attractor.gh (8.0 KB)

I am trying to do a line attractor, meaning the closer to the curve the smaller the circles, and also why are the CNR not following the curve of the surface? I am obviously doing something wrong so I need advise on the 2 problems. I am still learning Grasshopper, I am totally obsessed with it! I am getting there very very slowly!! Please help.

Cheers

Marcel

FYI.


Attempt to line attractor.gh (10.4 KB)

hi,

For you first question, the trick is to create a domain with Bounds, which takes in a list of values and creates a continuous domain encompassing all the values, so you can then remap it on your domain of choice to get the desired range of radiusses

For the second one, you can use Brep Closest Point to extract the normal to the brep the cirle’s centers in matter to make the circles tangent to the surface

(although you will note that now you have two circles per point since you have two curves to take distances from - I will let you try to find a solution to this issue by yourself :wink: )

Hope it helps

Attempt to line attractor - solution.gh (11.0 KB)

Thank you, That helps a lot. Now I know about “Brep closest point”. And of course the “Sort list” and “list item”.

Thnaks again.

1 Like