# Geometry Script problems with boolean and not only

**URL:** <https://forums.unrealengine.com/t/geometry-script-problems-with-boolean-and-not-only/752831>\
**Category:** Blueprint\
**Tags:** procedural-geometry, unreal-engine, geometry, question, Blueprint\
**Created:** [January 19, 2023, 12:55pm UTC](https://forums.unrealengine.com/t/geometry-script-problems-with-boolean-and-not-only/752831 "2023-01-19T12:55:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnteIvnif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnteIvnif](https://forums.unrealengine.com/u/AnteIvnif)\
**Post date:** [January 19, 2023, 12:55pm UTC](https://forums.unrealengine.com/t/geometry-script-problems-with-boolean-and-not-only/752831/1 "2023-01-19T12:55:43Z")

</div>

Hello everyone. I ran into two problems in Geometry Scripts. I’m trying to make a wall with a window where the wall is a plain from which a cube is subtracted. At this point, another plain is created and extruded into the depths. (I failed to squeeze a hole out of the plain only with the help of boolean. Tell me if it’s possible pls.)

The first question that I had. How can I sew the vertexes between the first plain and the second plain? I tried “Compact Mesh” and “Weld Mesh Edges” but I still see editor outline glitches on the edges. As if they don’t stitch together.

 ![scr1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/f/70f0897bf29e2153633409ffa51c3c246a76b0e8.jpeg)

There is a small dot on the screenshot. But when the camera moves, these points go to all the places of the junction. As if the geometry is not stitched.

* * *

The second problem that I think follows from the first. If you perform a boolean operation in this recess, then it stops working.

 ![scr2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/0/050065635f81c06929e8c3ec41e68c8538b03271.jpeg)

* * *

As soon as I pull it out of this zone, everything starts working.

 ![scr3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/6/f661fcdee60b9642e332fd0c401d2d1767faa9dc.jpeg)

If someone knows the solution to the problem please tell me 🙂

Everything is done in one blueprint in sequential order.

---

<div class="post-metadata">

**Author:** ![AnteIvnif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnteIvnif](https://forums.unrealengine.com/u/AnteIvnif)\
**Post date:** [January 21, 2023, 5:02pm UTC](https://forums.unrealengine.com/t/geometry-script-problems-with-boolean-and-not-only/752831/2 "2023-01-21T17:02:42Z")

</div>

Well, I found the right node for stitching “Apply Mesh Self Union”. The first part of the question disappears 🙂

But the problem with boolean still persisted :c

---

<div class="post-metadata">

**Author:** ![AnteIvnif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnteIvnif](https://forums.unrealengine.com/u/AnteIvnif)\
**Post date:** [January 21, 2023, 6:31pm UTC](https://forums.unrealengine.com/t/geometry-script-problems-with-boolean-and-not-only/752831/3 "2023-01-21T18:31:23Z")

</div>

I couldn’t fix it on the main mesh. Created an additional allocate compute mesh and performed all Boolean operations on it. Then combined with the main mesh. Probably it’s even more correct

---

<div class="post-metadata">

**Author:** ![WalkYoung](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WalkYoung](https://forums.unrealengine.com/u/WalkYoung)\
**Post date:** [March 31, 2024, 3:38pm UTC](https://forums.unrealengine.com/t/geometry-script-problems-with-boolean-and-not-only/752831/4 "2024-03-31T15:38:14Z")

</div>

What does this code look like?
