# CSG wrong behaviour

**URL:** <https://forum.babylonjs.com/t/csg-wrong-behaviour/34042>\
**Category:** Questions\
**Tags:** csg\
**Created:** [September 19, 2022, 2:32pm UTC](https://forum.babylonjs.com/t/csg-wrong-behaviour/34042 "2022-09-19T14:32:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danya\_rnd](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/danya_rnd/32/26493_2.png) [@danya\_rnd](https://forum.babylonjs.com/u/danya_rnd)\
**Post date:** [September 19, 2022, 2:32pm UTC](https://forum.babylonjs.com/t/csg-wrong-behaviour/34042/1 "2022-09-19T14:32:43Z")

</div>

Hi!

I don’t know why, but when i migrated from .babylon models to .glb and activated rightHandedSystem i have incorrect cut of my meshes. Looks like normals are inverted. Also i’m using draco compression. Why this happens?

Before(.babylon):

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/2/d2b23efb27a39059d8e626792324a2644040a7fe.jpeg)

After(.glb):

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/0/403ec95fa73b133898b3b096607d2ce85875820b.png)

This is my playground - [Playground](https://playground.babylonjs.com/#LNZCZK#1)

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [September 19, 2022, 4:13pm UTC](https://forum.babylonjs.com/t/csg-wrong-behaviour/34042/2 "2022-09-19T16:13:18Z")

</div>

You can use the second parameter on `CSG.toMesh` and not set the parent on the resulting mesh: [CSG wrong behaviout on GLB | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#LNZCZK#3)

---

<div class="post-metadata">

**Author:** ![danya\_rnd](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/danya_rnd/32/26493_2.png) [@danya\_rnd](https://forum.babylonjs.com/u/danya_rnd)\
**Post date:** [September 19, 2022, 8:24pm UTC](https://forum.babylonjs.com/t/csg-wrong-behaviour/34042/3 "2022-09-19T20:24:17Z")

</div>

I have an issue with positioning. Because CSG.FromMesh(mesh, true) sets incorrect pivotPoint for me. I need assign it to the group back, that’s why I created the parenting in my fucntion. That means that I should not use the second parameter as true.

May be another solution exists for my problem?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/e/2e9a347ef6e51bb81d335c612453089ac6bdb778.png)  
This is important for my project.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [September 20, 2022, 11:07am UTC](https://forum.babylonjs.com/t/csg-wrong-behaviour/34042/4 "2022-09-20T11:07:36Z")

</div>

Then you’ll probably need to flatten out the parenting structure by baking the parent’s transform into the child’s
