# Surface split

**URL:** <https://discourse.mcneel.com/t/surface-split/85338>\
**Category:** Grasshopper\
**Created:** [June 26, 2019, 4:30pm UTC](https://discourse.mcneel.com/t/surface-split/85338 "2019-06-26T16:30:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangyuanyong14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wangyuanyong14/32/154485_2.png) [@wangyuanyong14](https://discourse.mcneel.com/u/wangyuanyong14)\
**Post date:** [June 26, 2019, 4:30pm UTC](https://discourse.mcneel.com/t/surface-split/85338/1 "2019-06-26T16:30:59Z")

</div>

Hello everyone,  
I have a question about surface split in Grasshopper.

 ![partition%20surface](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/3/2385bf81fb9b2491881cc7486196bdf403d70bf4.png)  
I have one surface and two curves. I want to split the surface into three parts with these curves. But I don’t know why in my GH there are always only two parts (0-Trimmed surface and 1-Trimmed surface)?

Thanks a lot for your time and help.  
[surface partition.3dm](https://discourse.mcneel.com/uploads/short-url/2UaYvTsmiib8jEPRz9yBDhQvPXr.3dm) (108.8 KB) [surface partition.gh](https://discourse.mcneel.com/uploads/short-url/zabmVaMPT73J9GkvdDsstceogEz.gh) (24.8 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:** [June 26, 2019, 5:01pm UTC](https://discourse.mcneel.com/t/surface-split/85338/2 "2019-06-26T17:01:18Z")

</div>

Can’t read your R6 .3dm file in R5, can you internalize your geometry into the GH file?

Also, due to the **intentional incompatibility** of R5 and R6, the Subtract component is missing from your GH file… ☹

I tried substituting an arbitrary rectangle for the surface but the code failed at the CCX component. The Python isn’t helpful either, and probably not necessary?

---

<div class="post-metadata">

**Author:** ![will](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/will/32/479454_2.png) [@will](https://discourse.mcneel.com/u/will)\
**Post date:** [June 26, 2019, 6:49pm UTC](https://discourse.mcneel.com/t/surface-split/85338/3 "2019-06-26T18:49:05Z")

</div>

Hey @wangyuanyong14,

The planes are almost tangent (but not quite) to the edge of the hole and this appears to confuse the intersection a little bit.

You already have the tangent vectors at the points you’ve sampled on the oval curve, so why not use those directly?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/5/9/599744a885f6b8777401999b75655542e96d0c99.png)

This should result in the surface being trimmed into four parts.

---

<div class="post-metadata">

**Author:** ![GregArden](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gregarden/32/9536_2.png) [@GregArden](https://discourse.mcneel.com/u/GregArden)\
**Post date:** [June 26, 2019, 9:57pm UTC](https://discourse.mcneel.com/t/surface-split/85338/4 "2019-06-26T21:57:33Z")

</div>

Split should have worked here. I created a bug [RH-53471](https://mcneel.myjetbrains.com/youtrack/issue/RH-53471)

---

<div class="post-metadata">

**Author:** ![wangyuanyong14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wangyuanyong14/32/154485_2.png) [@wangyuanyong14](https://discourse.mcneel.com/u/wangyuanyong14)\
**Post date:** [June 27, 2019, 4:15pm UTC](https://discourse.mcneel.com/t/surface-split/85338/5 "2019-06-27T16:15:17Z")

</div>

Sorry, I have not know what’s your meaning. Could you give me a example in Gh?

Actually I want to split the surface using the planes at the Tangent Points.  
But I did’t find the tool in GH.

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![will](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/will/32/479454_2.png) [@will](https://discourse.mcneel.com/u/will)\
**Post date:** [June 27, 2019, 4:52pm UTC](https://discourse.mcneel.com/t/surface-split/85338/6 "2019-06-27T16:52:49Z")

</div>

The two new components you’ll require are _Unit Z_ and _Construct Plane_. Connect the _T_ (Tangents) output of the _Divide Curve_ component to the upper _List Item_ component to get the curve tangents that correspond to the points that you’ve picked, then use the points, the tangent vectors and the world Z direction to construct the planes.

Hopefully this description, along with the screenshot above, will help you figure this out!

---

<div class="post-metadata">

**Author:** ![wangyuanyong14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wangyuanyong14/32/154485_2.png) [@wangyuanyong14](https://discourse.mcneel.com/u/wangyuanyong14)\
**Post date:** [June 28, 2019, 6:08am UTC](https://discourse.mcneel.com/t/surface-split/85338/7 "2019-06-28T06:08:41Z")

</div>

> [@will](#):
>
> Connect the

I think so. what’s your bug. I can’t open it on my PC.

---

<div class="post-metadata">

**Author:** ![wangyuanyong14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wangyuanyong14/32/154485_2.png) [@wangyuanyong14](https://discourse.mcneel.com/u/wangyuanyong14)\
**Post date:** [June 28, 2019, 7:18am UTC](https://discourse.mcneel.com/t/surface-split/85338/8 "2019-06-28T07:18:16Z")

</div>

Thank you very much!

And I’ve got it.

---

<div class="post-metadata">

**Author:** ![wim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wim/32/747482_2.png) [@wim](https://discourse.mcneel.com/u/wim)\
**Post date:** [June 28, 2019, 10:17am UTC](https://discourse.mcneel.com/t/surface-split/85338/9 "2019-06-28T10:17:05Z")

</div>

The bug report was opened to the public by Will so you can try that link again.  
-wim
