# Trim without surface

**URL:** <https://discourse.mcneel.com/t/trim-without-surface/89158>\
**Category:** Grasshopper\
**Tags:** grasshopper\
**Created:** [September 20, 2019, 2:12pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158 "2019-09-20T14:12:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![florencia.vela11](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/florencia.vela11/32/151862_2.png) [@florencia.vela11](https://discourse.mcneel.com/u/florencia.vela11)\
**Post date:** [September 20, 2019, 2:12pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/1 "2019-09-20T14:12:53Z")

</div>

Hello! I was wondering if there is a method to trim two curves without using “trim with brep”, because then I need to incorporate other components and the surface tends to make the file slower. The result that I was looking for is in the image attached (the blue lines are the trimmed ones and the red the ones to keep)

 ![20190920_Q%26A](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/e/eeae8f7f06e1f2f7a7178c25757ece8af1d0a259.jpeg) .[20190920\_Q&A.gh](https://discourse.mcneel.com/uploads/short-url/wd2Rb4Rs3FnmXGyUCyrk2ZnPXwm.gh) (28.6 KB)  
Thank you !

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [September 20, 2019, 3:41pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/2 "2019-09-20T15:41:54Z")

</div>

Hi,

here is small taylormade script, which will only work for this particular situation…  
[20190920\_Q&A\_re.gh](https://discourse.mcneel.com/uploads/short-url/2o4ZcqA9Zt9RKjkD4U8qsBqzmCL.gh) (32.2 KB)

---

<div class="post-metadata">

**Author:** ![florencia.vela11](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/florencia.vela11/32/151862_2.png) [@florencia.vela11](https://discourse.mcneel.com/u/florencia.vela11)\
**Post date:** [September 21, 2019, 9:46pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/3 "2019-09-21T21:46:23Z")

</div>

Thank you very much for your time, that works perfectly!  
I had only one more doubt with another problem that is similar because I´ve solved it with a surface too, but then again, it slows the file that I´m working on. I am trying to offset in equal lenghts vertical curves in a rectangle, however two of them (at the center) are equal, and the ones at the extremes are not (like the first image attached). I managed to distribute the difference on four of them by using a surface (like the second image attached), but was wondering if there was another way to do so, without using a surface. Thank you again, and I am sorry for posting

 ![20190921_Q%26A_1](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/4/e4faef1d6f98849ff2146e4e761b81c94400c27f.jpeg) ![20190921_Q%26A_2](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/c/2/c268a0c5573d483998d12437d9d646974c06cba2.jpeg) [20190921\_Q&A.gh](https://discourse.mcneel.com/uploads/short-url/aWkvlHDRlSUiS7Mkdr8BXxfKXsr.gh) (15.5 KB)

---

<div class="post-metadata">

**Author:** ![anon39580149](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@anon39580149](https://discourse.mcneel.com/u/anon39580149)\
**Post date:** [September 21, 2019, 10:41pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/4 "2019-09-21T22:41:00Z")

</div>

Try with **Intersect \>\> Physical \>\> Surface|Curve**

 ![gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/b/e/be6ad3ba3466df44180c7ecfed5bec3ad95fd547.jpeg)

---

<div class="post-metadata">

**Author:** ![René\_Corella](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ren%C3%A9_corella/32/769427_2.png) [@René\_Corella](https://discourse.mcneel.com/u/Ren%C3%A9_Corella)\
**Post date:** [September 21, 2019, 11:07pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/5 "2019-09-21T23:07:52Z")

</div>

For this one:

> [@florencia.vela11](#):
>
> ![20190920_Q%26A](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/e/eeae8f7f06e1f2f7a7178c25757ece8af1d0a259.jpeg)

[20190920\_Q&A.gh](https://discourse.mcneel.com/uploads/short-url/sGK1qHdS8gzQQVzaBbBh9wlVcDP.gh) (35.9 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/2/220cad677fb2eb1fce4445ada7354765ce2adae9.png)

and for this one:

> [@florencia.vela11](#):
>
> ![20190921_QA_1.JPG](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/4/e4faef1d6f98849ff2146e4e761b81c94400c27f.jpeg)

[20190921\_Q&A.gh](https://discourse.mcneel.com/uploads/short-url/hCLXmknVfrC3gosa90R8g1vlnNW.gh) (19.4 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/d/3/d3a741ee12d514210767c5ef6fa4a3c95b6ce64e.png)

> [@florencia.vela11](#):
>
> without using a surface

✅

---

<div class="post-metadata">

**Author:** ![florencia.vela11](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/florencia.vela11/32/151862_2.png) [@florencia.vela11](https://discourse.mcneel.com/u/florencia.vela11)\
**Post date:** [September 23, 2019, 1:31pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/6 "2019-09-23T13:31:34Z")

</div>

Thank you for your answer, however in defenition number 2, the offsets in red (see the image attached) are not the same lenght as the blue ones.

 ![20190923_Q%26A](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/0/4/04a061e574cdb2e0d9d2667aba8b47f8c58c2398.jpeg)  
And in the first definition I understand that there is still the component trim with brep that is used, which comes from a previous surface that I would like to delete. ![20190923_Q%26A_1](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/2/42f8da7da5d2c17d04dc294cc996840394b16ec1.jpeg)

---

<div class="post-metadata">

**Author:** ![René\_Corella](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ren%C3%A9_corella/32/769427_2.png) [@René\_Corella](https://discourse.mcneel.com/u/Ren%C3%A9_Corella)\
**Post date:** [September 23, 2019, 6:01pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/7 "2019-09-23T18:01:22Z")

</div>

> [@florencia.vela11](#):
>
> are not the same lenght as the blue ones

sorry - they are, but you have to turn on this one:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/9/29a3317d28d28d54681e4de7f940632fc769f830.png)

---

<div class="post-metadata">

**Author:** ![guadiceliento1404](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/guadiceliento1404/32/159415_2.png) [@guadiceliento1404](https://discourse.mcneel.com/u/guadiceliento1404)\
**Post date:** [October 8, 2019, 10:55pm UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/8 "2019-10-08T22:55:27Z")

</div>

Thank you very much for your time, that works perflecty for that amount of branches. However, if you try with different amount of branches (like on the file attached) the region union fails… I cant figure out why it doesnt work… I hope there is a solution.  
Thank you!  
[20191008-Q&A.gh](https://discourse.mcneel.com/uploads/short-url/wklgNtxFdOZBy96XD9zJQhMOZio.gh) (12.7 KB)

---

<div class="post-metadata">

**Author:** ![René\_Corella](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ren%C3%A9_corella/32/769427_2.png) [@René\_Corella](https://discourse.mcneel.com/u/Ren%C3%A9_Corella)\
**Post date:** [October 9, 2019, 2:07am UTC](https://discourse.mcneel.com/t/trim-without-surface/89158/9 "2019-10-09T02:07:11Z")

</div>

region union cannot work if regions aren’t planar:

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

also no need to duplicate the thread:

> [@Region union not working](https://discourse.mcneel.com/t/region-union-not-working/90093):
>
> [regionunionnotworking.gh](https://discourse.mcneel.com/uploads/short-url/kYK7MyeaIJwonzQ2vsAr03b94K2.gh) (10.9 KB) hello everyone! im trying to achieve what the png image shows! but the component Region Union is not working. Can you please help me? Thank you so much. Guadalupe.

make sure shapes are planar, or at least project:

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

however, keep in mind, with this geometry you can simply get a cross section of the bounding boxes with the plane, without region union, resulting in the same rectangles:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/a/a/aa78671b54850be3a3282806f2979f16b7ae6b91.png)

hope it helps

check the attachment  
[regionunionnotworking.gh](https://discourse.mcneel.com/uploads/short-url/kYK7MyeaIJwonzQ2vsAr03b94K2.gh) (10.9 KB)
