# Intersect and subtract of 2 overlapped ExtrudePolygon - #2

**URL:** https://forum.babylonjs.com/t/intersect-and-subtract-of-2-overlapped-extrudepolygon-2/13846
**Category:** Questions
**Created:** [September 2, 2020, 8:29am UTC](https://forum.babylonjs.com/t/intersect-and-subtract-of-2-overlapped-extrudepolygon-2/13846 "2020-09-02T08:29:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![neofita](https://avatars.discourse-cdn.com/v4/letter/n/898d66/32.png) [@neofita](https://forum.babylonjs.com/u/neofita)
#### Post date: [September 2, 2020, 8:29am UTC](https://forum.babylonjs.com/t/intersect-and-subtract-of-2-overlapped-extrudepolygon-2/13846/1 "2020-09-02T08:29:12Z")

</div>

Hello everyone,  
i have a problem aboout 2 overlapped ExtrudedPolygon when i interset or subtract with another ExtrudeShapeCustom

I dont understand why the wrench is cutted and why it appear deepest than the quare

[https://playground.babylonjs.com/#LFWQQK](https://playground.babylonjs.com/#LFWQQK)

Thank you in advance

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [September 2, 2020, 1:50pm UTC](https://forum.babylonjs.com/t/intersect-and-subtract-of-2-overlapped-extrudepolygon-2/13846/2 "2020-09-02T13:50:43Z")

</div>

Your playground does not work at all for me, but pinging @JohnK and @Evgeni_Popov who are awesome with geometry in case they have any ideas ?

---

<div class="post-metadata">

### Author: ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)
#### Post date: [September 2, 2020, 2:21pm UTC](https://forum.babylonjs.com/t/intersect-and-subtract-of-2-overlapped-extrudepolygon-2/13846/3 "2020-09-02T14:21:34Z")

</div>

It seems the CSG algorithm does not like that the tail of the wrench goes inside the square…

If you use CSG to union the wrench and the square first, it seems to be better:

[https://playground.babylonjs.com/#LFWQQK#1](https://playground.babylonjs.com/#LFWQQK#1)

---

<div class="post-metadata">

### Author: ![neofita](https://avatars.discourse-cdn.com/v4/letter/n/898d66/32.png) [@neofita](https://forum.babylonjs.com/u/neofita)
#### Post date: [September 3, 2020, 1:06pm UTC](https://forum.babylonjs.com/t/intersect-and-subtract-of-2-overlapped-extrudepolygon-2/13846/4 "2020-09-03T13:06:02Z")

</div>

@Evgeni_Popov very thanks ! 🙂
