# How to remove overlapping faces?

**URL:** <https://forums.sketchup.com/t/how-to-remove-overlapping-faces/102334>\
**Category:** Developers\
**Tags:** rubyapi\
**Created:** [September 4, 2019, 1:22pm UTC](https://forums.sketchup.com/t/how-to-remove-overlapping-faces/102334 "2019-09-04T13:22:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajawat](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rajawat](https://forums.sketchup.com/u/rajawat)\
**Post date:** [September 4, 2019, 1:22pm UTC](https://forums.sketchup.com/t/how-to-remove-overlapping-faces/102334/1 "2019-09-04T13:22:27Z")

</div>

Let us say that there is a rectangle - R1 - and another rectangle R2.  
R2 is complete inside R1.  
So R2 face is overlapping with some part of R1.  
How can I remove the overlapping part because when I export the model and use it there is z-fighting?

---

<div class="post-metadata">

**Author:** ![g.h.hubers](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@g.h.hubers](https://forums.sketchup.com/u/g.h.hubers)\
**Post date:** [September 4, 2019, 1:49pm UTC](https://forums.sketchup.com/t/how-to-remove-overlapping-faces/102334/2 "2019-09-04T13:49:04Z")

</div>

Forget about following answer, (due to me missing the Dev. category)

_There shouldn’t be any Z-fighting, R2 should have a rectangular face that you can select and R1 should have sort of a “window” face that you can select separately. SketchUp would normally split R1 as soon as you draw R2 **coplanar** over R1’s face._

_Make profiles visible to at least 2 points to see if R2 shows profiles instead of thin edges._

---

<div class="post-metadata">

**Author:** ![rajawat](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rajawat](https://forums.sketchup.com/u/rajawat)\
**Post date:** [September 5, 2019, 5:15am UTC](https://forums.sketchup.com/t/how-to-remove-overlapping-faces/102334/3 "2019-09-05T05:15:57Z")

</div>

Sorry, I missed the important detail. R2 is a group.

 ![ZFight](https://global.discourse-cdn.com/sketchup/original/3X/9/b/9b5809e9665464ae50e171e6afee9bb59974f263.gif)

Can we do some kind of post-processing to tackle this problem?

---

<div class="post-metadata">

**Author:** ![g.h.hubers](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@g.h.hubers](https://forums.sketchup.com/u/g.h.hubers)\
**Post date:** [September 5, 2019, 5:57am UTC](https://forums.sketchup.com/t/how-to-remove-overlapping-faces/102334/4 "2019-09-05T05:57:59Z")

</div>

R2 needs to be created as a component with **glue to** plus **cut opening** properties to **that specific face** , instead of a group. Try that in Ruby.

---

<div class="post-metadata">

**Author:** ![tt\_su](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tt_su/32/17_2.png) [@tt\_su](https://forums.sketchup.com/u/tt_su)\
**Post date:** [September 5, 2019, 8:29am UTC](https://forums.sketchup.com/t/how-to-remove-overlapping-faces/102334/5 "2019-09-05T08:29:23Z")

</div>

> [@g.h.hubers](#):
>
> **glue to** plus **cut opening**

Shouldn’t need a cut-opening. The Glue To should take care of the z-flighting. (Internally it’s offset a little bit when rendering)
