# Faces missing after using trim function

**URL:** <https://forums.sketchup.com/t/faces-missing-after-using-trim-function/133551>\
**Category:** Ruby API\
**Tags:** sketchup, advice, modeling, api, components\
**Created:** [August 13, 2020, 9:11pm UTC](https://forums.sketchup.com/t/faces-missing-after-using-trim-function/133551 "2020-08-13T21:11:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwatts](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@cwatts](https://forums.sketchup.com/u/cwatts)\
**Post date:** [August 13, 2020, 9:11pm UTC](https://forums.sketchup.com/t/faces-missing-after-using-trim-function/133551/1 "2020-08-13T21:11:51Z")

</div>

After using the trim function in the way seen below I keep getting faces where I don’t want them and I am missing some faces where I do want them (sometimes). It seems like every other time I get the faces but I end up with a situation like picture 2. I have been working on this for a while but I haven’t had much success. My model units are in mm but I am using the default inches and planning on scaling it back down later.

 ![problem_gif](https://global.discourse-cdn.com/sketchup/original/3X/6/0/60758c840f12d63e401b699bdd2647722e542166.gif)  
 ![image](https://global.discourse-cdn.com/sketchup/original/3X/7/d/7dd1196cafed777998199e7aa9f80615d0f6ff2f.png)  
 ![image](https://global.discourse-cdn.com/sketchup/original/3X/f/2/f2dfa4963eb43dd3b89dda81aca153405dc685d7.png)  
[example.skp](https://forums.sketchup.com/uploads/short-url/inWpVGGurwFdxTMC9JAD9gj6bEk.skp) (104.8 KB)

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [August 13, 2020, 9:49pm UTC](https://forums.sketchup.com/t/faces-missing-after-using-trim-function/133551/2 "2020-08-13T21:49:21Z")

</div>

The middle shot looks like there are 2 coincident faces. (I see z-fighting.)

Looking at the first GIF, I wonder if the boolean **subtract** method would be better than **trim**?

---

<div class="post-metadata">

**Author:** ![cwatts](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@cwatts](https://forums.sketchup.com/u/cwatts)\
**Post date:** [August 13, 2020, 10:35pm UTC](https://forums.sketchup.com/t/faces-missing-after-using-trim-function/133551/3 "2020-08-13T22:35:51Z")

</div>

I got the same result with subtract. I’m still trying to figure this one out. It appears as if there is a infinitesimal difference in the z value at the bottom. It’s strange though because all my values are in inches.

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [August 13, 2020, 11:23pm UTC](https://forums.sketchup.com/t/faces-missing-after-using-trim-function/133551/4 "2020-08-13T23:23:09Z")

</div>

Make sure there are no stray edges. And look for tiny edge lengths.

---

<div class="post-metadata">

**Author:** ![cwatts](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@cwatts](https://forums.sketchup.com/u/cwatts)\
**Post date:** [August 13, 2020, 11:48pm UTC](https://forums.sketchup.com/t/faces-missing-after-using-trim-function/133551/5 "2020-08-13T23:48:14Z")

</div>

stray edges meaning? The skp is attached to the first post if you would like to see it yourself. I think this is just an issue where sketchup’s position assignment isn’t necessarily accurate.
