# Attempt to Line Attractor on a Brep

**URL:** <https://discourse.mcneel.com/t/attempt-to-line-attractor-on-a-brep/216600>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [March 4, 2026, 5:44am UTC](https://discourse.mcneel.com/t/attempt-to-line-attractor-on-a-brep/216600 "2026-03-04T05:44:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcel1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/marcel1/32/656175_2.png) [@marcel1](https://discourse.mcneel.com/u/marcel1)\
**Post date:** [March 4, 2026, 5:44am UTC](https://discourse.mcneel.com/t/attempt-to-line-attractor-on-a-brep/216600/1 "2026-03-04T05:44:33Z")

</div>

Hi everyone

[Attempt to Line Attractor.3dm](https://discourse.mcneel.com/uploads/short-url/ucYUzXs3kJUa1XONCY4ezG6f7Ud.3dm) (468.5 KB)

[Attempt to line attractor.gh](https://discourse.mcneel.com/uploads/short-url/yQFWSCqJ0jBJ7X09kkA1Is4IGeJ.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

---

<div class="post-metadata">

**Author:** ![jessesn](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jessesn/32/771224_2.png) [@jessesn](https://discourse.mcneel.com/u/jessesn)\
**Post date:** [March 4, 2026, 6:21am UTC](https://discourse.mcneel.com/t/attempt-to-line-attractor-on-a-brep/216600/2 "2026-03-04T06:21:32Z")

</div>

> [@marcel1](#):
>
> I am still learning Grasshopper, I am totally obsessed with it! I am getting there very very slowly!! Please help.

FYI.

 ![LineAttractor](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/9/0/690402550901be3fedb5a257094bfdf88ad49456.jpeg)  
[Attempt to line attractor.gh](https://discourse.mcneel.com/uploads/short-url/zI3NX8usVXgF1HikxEUIM8siwzm.gh) (10.4 KB)

---

<div class="post-metadata">

**Author:** ![M\_Thorez](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/m_thorez/32/638249_2.png) [@M\_Thorez](https://discourse.mcneel.com/u/M_Thorez)\
**Post date:** [March 4, 2026, 6:25am UTC](https://discourse.mcneel.com/t/attempt-to-line-attractor-on-a-brep/216600/3 "2026-03-04T06:25:33Z")

</div>

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 😉 )

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/b/1/fb1d34ded08a825f3b53dd78188c4b47a99f8bf0.jpeg)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/d/f/cdf1647ce617da04362422d712c57249799b8de1.png)

Hope it helps

[Attempt to line attractor - solution.gh](https://discourse.mcneel.com/uploads/short-url/tfSkixykxK0jSOBmKhCvTupkzen.gh) (11.0 KB)

---

<div class="post-metadata">

**Author:** ![marcel1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/marcel1/32/656175_2.png) [@marcel1](https://discourse.mcneel.com/u/marcel1)\
**Post date:** [March 4, 2026, 11:15am UTC](https://discourse.mcneel.com/t/attempt-to-line-attractor-on-a-brep/216600/4 "2026-03-04T11:15:33Z")

</div>

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

Thnaks again.
