# Grasshopper - intersection issue

**URL:** <https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [September 29, 2025, 1:38pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329 "2025-09-29T13:38:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniele9](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/daniele9/32/700539_2.png) [@daniele9](https://discourse.mcneel.com/u/daniele9)\
**Post date:** [September 29, 2025, 1:38pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/1 "2025-09-29T13:38:32Z")

</div>

Hi there.

I have a problem about ordering sections resulting from intersection Brep-plane. I have one Brep, a series of 4 surfaces (moved vertically), intersection command. The result is 4 groups of intersections (as shown on panel).

The problem comes when I tried to retrieve a single group of intersection (for example the first, that includes 2 closed curves). The list Item “0” should give me 2 curves, but when I take out the set from “list Item → 0” 4 curves are highlighted…. and the problem is the same when is try with “list item → 1,2.3…”…

Do you know why? Could you kinldy help me?

Thank you in advance.

 ![2025-09-29_15h04_11](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/2/8/72899bb7cffd23971a40ab3a229f3016cad79308.png)

 ![2025-09-29_14h58_40](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/f/1/0f1693343f08158aca3ec887e9a65832037ad014.png)

---

<div class="post-metadata">

**Author:** ![ftzuk](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ftzuk/32/689170_2.png) [@ftzuk](https://discourse.mcneel.com/u/ftzuk)\
**Post date:** [September 29, 2025, 1:45pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/2 "2025-09-29T13:45:55Z")

</div>

I don’t see the issue. Those trees look exactly the way they should look with branches for the different amount of intersections at each layer.

List Item doesn’t return branches. Only indexes. So using List Item on a tree will give you all items at index 0 on every branch.

Rather just upload your code.

---

<div class="post-metadata">

**Author:** ![daniele9](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/daniele9/32/700539_2.png) [@daniele9](https://discourse.mcneel.com/u/daniele9)\
**Post date:** [September 29, 2025, 2:03pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/3 "2025-09-29T14:03:50Z")

</div>

Thank you for you answer. Maybe I didn’t explain wuell my issue.

The tree looks exactly the way I want, it’s ok. My problem is: when I try to retrieve, for example, the first branch (i.e item 0), I expect to have only 2 curves selected (those one of the first set). But now, when I select the “item 0”, Gh gives me 4 curves, apparently randomly taken.

I want to retrieve every branch correctly organized, every one with its corresponding curves.  
Let me know if the issue is clear.

 ![2025-09-29_15h56_39](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/d/1/8d1bbb0c67a68b921ca88b1959233194029a6266.png)

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/771922_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [September 29, 2025, 2:07pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/4 "2025-09-29T14:07:55Z")

</div>

Daniele, you need to better understand how datatree works.

@Joseph_Oster do you have your usual “tree explorer” definition ? That would be handy here…

---

<div class="post-metadata">

**Author:** ![ftzuk](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ftzuk/32/689170_2.png) [@ftzuk](https://discourse.mcneel.com/u/ftzuk)\
**Post date:** [September 29, 2025, 2:14pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/5 "2025-09-29T14:14:25Z")

</div>

> [@daniele9](#):
>
> But now, when I select the “item 0”, Gh gives me 4 curves, apparently randomly taken.

 ![bg](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/5/4/154ba8541ee13f175c4ab4025e4af9d7aff5dbda.png)

List Item = Index. So if you have 4 branches and each branch has an item at index 0, then using List Item on that tree will give you 4 items at index 0 (one item from each branch). List Item is not used for getting branches, it’s for getting indexes.

---

<div class="post-metadata">

**Author:** ![daniele9](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/daniele9/32/700539_2.png) [@daniele9](https://discourse.mcneel.com/u/daniele9)\
**Post date:** [September 29, 2025, 2:18pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/6 "2025-09-29T14:18:15Z")

</div>

Ok thank you.

Now I understood.

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [September 29, 2025, 2:31pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/7 "2025-09-29T14:31:06Z")

</div>

> [@maje90](#):
>
> @Joseph_Oster do you have your usual “tree explorer” definition ? That would be handy here…

> [@Selecting a particular Data Tree Branch](https://discourse.mcneel.com/t/selecting-a-particular-data-tree-branch/201766/3):
>
> [[image] ](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/e/8e1c47733dcaf233514a3a09d10524af59458288.png)[[The deal with Data Trees] ](https://www.youtube.com/watch?v=ob3ER12ut3Y)

**P.S.** This thread is not in the Grasshopper category ❓

**P.P.S.** No GH file posted ⁉ 👎

---

<div class="post-metadata">

**Author:** ![daniele9](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/daniele9/32/700539_2.png) [@daniele9](https://discourse.mcneel.com/u/daniele9)\
**Post date:** [September 29, 2025, 2:49pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/8 "2025-09-29T14:49:52Z")

</div>

Here is the Gh file.

[branches.gh](https://discourse.mcneel.com/uploads/short-url/1BR5f6ygrL750zM0v75rgYYTo3n.gh) (9.6 KB)

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [September 29, 2025, 3:06pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/9 "2025-09-29T15:06:34Z")

</div>

> [@daniele9](#):
>
> Here is the Gh file.

You didn’t internalize the geometry, so the file is useless..

 ![missing](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/5/1/b515916a1ba1abc31ffa0c466cb0619180629458.png)

---

<div class="post-metadata">

**Author:** ![jeremy5](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jeremy5/32/773943_2.png) [@jeremy5](https://discourse.mcneel.com/u/jeremy5)\
**Post date:** [September 29, 2025, 3:06pm UTC](https://discourse.mcneel.com/t/grasshopper-intersection-issue/210329/10 "2025-09-29T15:06:38Z")

</div>

> [@Joseph\_Oster](#):
>
> This thread is not in the Grasshopper category

I’ve taken the liberty of retagging it to Grasshopper.
