Geometry Script problems with boolean and not only

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