# Exclusive curve selection using Brep for lattice operation

**URL:** <https://discourse.mcneel.com/t/exclusive-curve-selection-using-brep-for-lattice-operation/220237>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [June 23, 2026, 3:01pm UTC](https://discourse.mcneel.com/t/exclusive-curve-selection-using-brep-for-lattice-operation/220237 "2026-06-23T15:01:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FQS-29](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fqs-29/32/770594_2.png) [@FQS-29](https://discourse.mcneel.com/u/FQS-29)\
**Post date:** [June 23, 2026, 3:01pm UTC](https://discourse.mcneel.com/t/exclusive-curve-selection-using-brep-for-lattice-operation/220237/1 "2026-06-23T15:01:32Z")

</div>

Hello all grasshopper masters,

I find it difficult to achieve the following goals:

1st Goal:  
Select curves that are fully inside the closed Brep (in this case it is a sphere), and these curves are 7712 individual strut curves of a lattice that are not joined together, and they do not intersect the sphere at all

2nd goal:  
Regarding the curves that are intersecting with the Brep (sphere), how do I exclusively select part of the curves that are inside the brep?

Essentially, I just need curves that are inside the sphere, including the intersecting curves that are sitting inside. (Like the white lines below)

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

Please find the attached example file. I haven’t directly plugged the curve and Brep into the workflow, as it crashes my Rhino every time. I have internalised the curves and sphere further below the GH interface. The workflow is what I tried to replicate Claude Ai’s guide, but it doesn’t seem working.

[selecting curves inside Brep.gh](https://discourse.mcneel.com/uploads/short-url/aggoPjlMu2tRiZgH3dh7m0mTE4g.gh) (201.8 KB)

Any suggestions and tips would be greatly appreciated!

Many thanks!

Sam

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/7/b/87bdc36ed33811f27030c14a4e02fd5379d6051d.png)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/e/0/9e0de58b4d59217ed1bdc065186bc3405dc7df5a.png)

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [June 23, 2026, 3:17pm UTC](https://discourse.mcneel.com/t/exclusive-curve-selection-using-brep-for-lattice-operation/220237/2 "2026-06-23T15:17:14Z")

</div>

I’m not in front of my computer so I have not looked at your file.

Grasshopper has a trim with Brep component…. It outputs curves inside and outside which might help you…

---

<div class="post-metadata">

**Author:** ![FQS-29](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fqs-29/32/770594_2.png) [@FQS-29](https://discourse.mcneel.com/u/FQS-29)\
**Post date:** [June 23, 2026, 5:01pm UTC](https://discourse.mcneel.com/t/exclusive-curve-selection-using-brep-for-lattice-operation/220237/3 "2026-06-23T17:01:43Z")

</div>

It worked!

Thank you Martin! I have asked this question to claude ai & chagpt, and both of them never mention this trim with Brep component.

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [June 23, 2026, 6:30pm UTC](https://discourse.mcneel.com/t/exclusive-curve-selection-using-brep-for-lattice-operation/220237/4 "2026-06-23T18:30:49Z")

</div>

Haha, humans still got it 😁
